sockjs-tornado
sockjs-tornado copied to clipboard
Support for heartbeat?
It was claimed that the upcoming SockJS 0.4 will support heartbeat by default. Is there any plan for SockJS-Tornado to support heartbeat?
Just to confirm, for now, using SockJS 0.3.2, we need to implement our own heartbeat mechanism at the application layer?
I will add heartbeat support shortly after 0.4 will be officially released.
For 0.3.2 - yes, you have to implement your own heartbeats.
Out of curiosity, why do you want to have heartbeats? To detect than users disconnected before TCP stack will know about it or for some other reasons?
thanks for the confirmation.
yes, the primary use for me is to detect disconnections before TCP signals any problem, and reconnect immediately if possible. My specific use case prefers to have this sort of early detection.
hey was this ever implemented? or do we still have to implement our own heartbeat mechanism? thanks
Nope, sockjs never got bidirectional heartbeat support. Sorry.
thanks
See https://github.com/sockjs/sockjs-protocol/wiki/Heartbeats-and-SockJS and #81: heartbeats are now supported from SockJS 0.4.0 upwards