ping/pong?
Closed this issue · 2 comments
donpdonp commented
I'm using Celluloid::IO to listen to a TCPSocket and a Firefox browser to open a websocket connection. The handshake goes well and sending/receiving seems to work! After a few seconds though, an EOFError is raised on the server and the client is disconnected. My guess is that the server needs to implement the Ping/Pong part of websockets. Does this library provide a way to create these messages?
imanel commented
Yes - websocket-ruby is supporting all features of standard, including ping and pong requests. You can see how to implement it here. Please don't hesitate to ask if you will need any help with implementation.
donpdonp commented
Ok I see it. Thank you very much!