Constructs a new Messenger instance.
The logger for logging messages.
Callback function to handle incoming video frames.
The video frame message received from the server.
Event that is triggered when the connection status updates.
An event dispatcher for connection status updates.
Gets the current connection status.
The current ClientStatus.
Gets the URL to which the messenger is currently connecting or connected.
The WebSocket URL as a string, or undefined if not set.
Connects to a WebSocket server at the specified URL.
A promise that resolves when the connection is established.
Disconnects from the current WebSocket server.
Optional
error: ClientErrorSends an RPC request and waits for a response.
The Marshal containing the request data.
A promise that resolves with the response data.
Messenger class responsible for handling WebSocket communication, including sending and receiving messages, managing connection state, and dispatching events.