Create a new socket client
The settings to use
Get the whole socket object. Use with caution! Useful for custom things that are not implemented in this class
The socket object
Register a listener for playlist created events
The listener to register
Register a listener for state changes
The listener to register
Remove a listener for playlist created events
The listener to remove
Remove a listener for state changes
The listener to remove
Set the authentication token, so it can be used for further requests and reconnects automatically if token changed.
We recommend to use the setAuthToken method in the CompanionConnector class instead of this method because it sets the token for both clients and also reconnects the socket client if the token changed.
The token to set
A socket client to communicate with the companion servers socket API