CoordinatorSocketConnection  
    PersistentSocket architecture
- Health monitor that sends a ping every 30 seconds 
- Automatically reconnects if it encounters a temp failure 
- Raises the error if there is a permanent failure 
- Flow to avoid concurrency related bugs 
- Ability to wait till the socket is connected (important to prevent race conditions) 
Constructors
Inherited properties
Functions
Get the connection id.
Disconnect the socket.
Socket errors as Flow
Socket events as Flow
Invoked when we receive the first ConnectedEventType in this connection.
Invoked when the connection begins to establish and socket state changes to Connecting.
Invoked when the web socket connection is disconnected.
Invoked when there is any error in this web socket connection.
Invoked when we receive any successful event.
Send event to the socket.
State of the socket as StateFlow
Update the token from the outside.
When connected to the socket.