Disconnect from the WebSocket server
Get list of active subscriptions
Get list of local subscriptions (may not be active on server yet)
Get current connection state
Check if connected
Register a lifecycle event callback
Lifecycle event: 'connected', 'disconnected', 'reconnecting', 'error'
Callback to invoke
Unregister function
Subscribe to an event
Name of the event to subscribe to
Callback to invoke when event is received
Unsubscribe function
Unsubscribe from an event
Name of the event to unsubscribe from
Connect to the WebSocket server