Closes the websocket from the local side.
The connection state of the web socket.
Listener callback to handle close events (Remote side).
The callback.
Listener callback to handle socket errors.
The callback.
Listener callback to handle incoming messages.
The callback.
Sends the given message over the web socket in binary format.
The binary message.
An abstraction that enables reuse of the `WebSocketChannel class in the frontend and backend independent of the actual underlying socket implementation.