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
{{ message }}
This repository has been archived by the owner on May 22, 2019. It is now read-only.
Hi, I need to execute a particular method when the connection to the server is lost.
I have subscribed to status events, they work ok from disconected-connecting-connected state but nothing happens when I shut down internet connection..
client.statusChanged().subscribe(t1 -> {
LOGGER.info("WAMP Session status changed to " + t1);
Most likely the usual issue of operating systems not reporting a TCP connection state reliably. That's e.g. what happens when you just plug a network cable while nothing is transferred: There's no FIN received, so OS thinks connection is still alive. And as no sends happen the TCP stack also does not see these are failing.
Remedies for that are either some heartbeat messages on transport layer (websocket pings would work, but are not sent by jawampa). Or polling some arbitrary method on application layer just for regular checking if the connection still works. If an error is discovered then the Disconnected event should be emitted.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, I need to execute a particular method when the connection to the server is lost.
I have subscribed to status events, they work ok from disconected-connecting-connected state but nothing happens when I shut down internet connection..
client.statusChanged().subscribe(t1 -> {
LOGGER.info("WAMP Session status changed to " + t1);
...
Thanks in advance ;)
The text was updated successfully, but these errors were encountered: