B4J Question How to detect webscocket disconnection client side?

mauro vicamini

Active Member
Licensed User
Longtime User
Hi everyone!
I'd like to know how to detect a websocket disconnection (due to server fault or line ) in a javascript client that use b4j_ws.js and reconnecting-websocket.js, but at the same time it doesn't confuse a clear close recived from the server with an accidental disconnection.

Thanks for the attention.
 
Top