I am currently working on the connection monitor for my game client. I am currently calling a remote procedure every 5 seconds to display the latency of the connection.
This is also where I check connection.isRetrying to display a ‘reconnecting’ status.
I noticed that Autobahn.js almost immediately throws up an event when I shut down the crossbar service. It would be great if I could hook into at least one callback to make the monitor more responsive without sending ping requests at a higher frequency.
These would be:
autobann.Connection.onReconnect (<- Not so important since I could temporarily increase the poll frequency if onRetrying is true)