-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic hearbeat using WS pings/pongs #32
Comments
This is an important one. Server-initiated WS ping/pong will only allow the server to detect broken connections quickly .. not the client. One needs client-initiated WS ping/pong in addition. You need both. |
You don't necessarily need both. You just need the client to record the last time it received a ping from the server and have a thread that uses that as a timeout to kill the connection. |
@william-ferguson-au interesting idea. could work. I guess I'd still call it a "workaround", but still. unfort., it won't work in browsers (unrelated to AutobahnAndroid, but relevant for AutobahnJS), because the W3C WS API doesnt expose any ping/pong (not receiving, not sending). anyway: we do want to have client initiated (and timed out) WS ping/pong in AutobahnAndroid v2 .. |
fixed by #287 |
There should be an automatic heartbeat feature to quickly recognize broken connections.
The text was updated successfully, but these errors were encountered: