Create a new ClientContext instance. Usually you don't need to create this.
Client instance, usually a WebSocket
Client context options
Readonly
clientClient instance, usually a WebSocket
Readonly
idClient ID, a random UUID. Also used as the AUTH challenge.
IP address of the client.
Public key of the client. Will be set after the client sends an AUTH message.
Readonly
subscriptionsSubscriptions of the client. The key is the subscription ID. The value is the filters.
Whether the client is open. Only can send messages when the client is open.
Send a message to the client. It will be ignored if the client is not open.
Outgoing message
Client context.