interface GenericClient {
    settings: Settings;
    setAuthToken(token): void;
}

Implemented by

Properties

Methods

Properties

settings: Settings

Methods

  • Set the authentication token, so it can be used for further requests.

    We recommend to use the setAuthToken method in the CompanionConnector class instead of this method because it sets the token for both clients and reconnects the socket client if the token changed.

    Parameters

    • token: string

      The token to set

    Returns void