SocketApi
The SocketApi maintains a WebSocket connection to the current server specified in its parent ApiClient. Each ApiClient has one SocketApi instance. Updating the server URL, device info, client info or access token using the update function will automatically propagate and reconnect the WebSocket.
The WebSocket automatically disconnects when there are no active subscriptions. Subscriptions will automatically send the appropriate start and stop messages to the server, the start messages will always request an interval of one second. Prefer using individual subscriptions above the subscribeAll function for best performance.
Inheritors
Functions
Subscribe to all incoming WebSocket messages.
Subscribe to a specific GeneralCommandType message.
Subscribe to specific GeneralCommandType messages.
Subscribe to a specific PlaystateCommand message.
Subscribe to specific PlaystateCommand messages.
Subscribe to a specific SendCommandType message.
Subscribe to specific SendCommandType messages.