Skip to content

Broadcasting to multiple Sinatra streams during a request results in a FiberError. How do I send server-side events correctly? #298

Answered by ioquatix
nogweii asked this question in Q&A
Discussion options

You must be logged in to vote

Ah right, yes, if you are doing it in-process, yes, 1/16th chance it would work. Otherwise, you need to use a shared backend pub/sub e.g. redis, etc.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@nogweii
Comment options

@ioquatix
Comment options

@nogweii
Comment options

@ioquatix
Comment options

Answer selected by nogweii
@nogweii
Comment options

@ioquatix
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants