Companion Connector. This class is the main class of the library. It contains the rest and socket client. You can also use the RestClient and SocketClient directly if you want to. But you have to manage the settings update for both clients yourself.

Constructors

Accessors

Methods

  • Set the authentication token, so it can be used for further requests. This automatically sets the token for both clients and reconnects the socket client if the token changed.

    Parameters

    • token: string

      The token to set

    Returns void