Package-level declarations
Types
Implementation of the Jellyfin WebSocket API. Each instance of this class maintains its own connection.
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 current connection state of the SocketAPI. This is always Disconnected when there are no active subscriptions.
Reusable WebSocket connection. Constructed using SocketConnectionFactory.
The factory to create a SocketConnection.
Possible states for a SocketConnection. This will start out as Disconnected with no error set and switch to Connecting when attempting to initialize a session. The Message state means that the socket is connected.
The SocketReconnectPolicy describes the behavior for reconnecting WebSockets when there are active subscriptions. It will be notified about specific events and asked for a delay when the socket is disconnected but still has active subscriptions.
Functions
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.