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.
1. Check the browser console messages.
2. Check the source code of reconneting-websocket.js and b4j_ws. You need to handle the b4j_ws.onconnecting event. This will be raised when the client tries to reconnect.