You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering something that may or may not be indicative of an underlying issue in faye-websocket-ruby. I'll describe the situation in case it's obvious that I'm doing something wrong. If not I can try to come up with a self-contained test case.
Here's the situation: I've created a monitoring tool that needs to establish websocket connections to multiple servers. The monitor for each server consists of a Faye::WebSocket::Client within an EventMachine reactor. The issue is that if a websocket server dies, the websockets for all of the other monitors are closed as well. This isn't the case if I just terminate a specific websocket from within my monitoring tool.
If you think this may indicate an issue in faye-websocket-ruby, let me know and I'll extract my code out and also create a server that can be used to reproduce. And if I'm doing something obviously wrong, I'd really appreciate it if you could give me some guidance. Thanks!
Update: to be more concise, I guess I should just ask: should it be possible to run multiple faye-websocket-ruby clients within a single ruby process? Thanks.
The text was updated successfully, but these errors were encountered:
The most likely cause of this is that EventMachine is being stopped when one client disconnects. Within this library, socket instances do not sure any state, the only thing they share is that they need EventMachine to be running at all times.
Hmm, I'm not explicitly calling EM.stop. I ended up taking another approach to the problem I'm trying to solve. I'll just close this out since it's likely that the issue was due to something on my end.
I'm encountering something that may or may not be indicative of an underlying issue in faye-websocket-ruby. I'll describe the situation in case it's obvious that I'm doing something wrong. If not I can try to come up with a self-contained test case.
Here's the situation: I've created a monitoring tool that needs to establish websocket connections to multiple servers. The monitor for each server consists of a Faye::WebSocket::Client within an EventMachine reactor. The issue is that if a websocket server dies, the websockets for all of the other monitors are closed as well. This isn't the case if I just terminate a specific websocket from within my monitoring tool.
If you think this may indicate an issue in faye-websocket-ruby, let me know and I'll extract my code out and also create a server that can be used to reproduce. And if I'm doing something obviously wrong, I'd really appreciate it if you could give me some guidance. Thanks!
Update: to be more concise, I guess I should just ask: should it be possible to run multiple faye-websocket-ruby clients within a single ruby process? Thanks.
The text was updated successfully, but these errors were encountered: