Connection Events

The following JavaScript events are triggered as a result of the connection changing:

connection:connecting

Triggered when the connection state changes to connecting. The payload is unused.

connection:disconnected

Triggered when the connection state changes to disconnected. The payload is unused.

connection:connected

Triggered when the connection state changes to connected. The payload is unused.

connection:connecting_in

Triggered periodically whilst attemtping to connect. This is usually triggered when attempting to reconnect.