Private
Readonly
_ainThe Ain object.
Private
_customThe custom client id of the event channel.
Private
Readonly
_eventThe event callback manager object.
Private
Optional
_handshakeThe handshake timeout object.
Private
Optional
_heartbeatThe heartbeat timeout object.
Private
_isWhether it's connected or not.
Private
Optional
_wsThe web socket client.
Builds a message to be sent to the event channel.
The message type.
The payload data of the msssage.
Opens a new event channel.
Optional
connectionCallback: ConnectionCallbackThe connection callback function.
Optional
disconnectionCallback: DisconnectionCallbackThe disconnection callback function.
Optional
customClientId: stringThe custom client id to set.
A promise for the connection success.
Sends a DEREGISTER_FILTER messsage to the event channel.
The event filter to deregister.
Handles a (non-ping) message from the event channel.
The message type.
The message data.
Sends a REGISTER_FILTER messsage to the event channel.
The event filter to register.
Sends a message to the event channel.
The message to be sent.
A class for managing event channels and event handling callback functions.