Is there anyway to handle disconnection and reconnection? There aren’t any methods to handle that.
The closest thing to connect/disconnect would be in the onMonitorMessage callback. You’ll get the WebSocket upgrade header there for a successful connection, however I don’t believe you’ll get any monitor messages for a closed connection.
This is something we can add in the form of onConnect, onDisconnect callbacks – I’ve added this as an RFE.
I’ve added onConnect and onDisconnect callbacks to the WebSocket DAT. These will be in the next 30k build we release.
This is great! Thank you.