connect

Signature

  • connect(connectParameters: ConnectParameters): Promise<Session>

    Establish a connection to a OneApi Gateway.

    Only one connection should be established at any one time. Calling connect will destroy any previous sessions.

    Parameters

    Returns Promise<Session>

    A promise resolving to a Session if the connection was successful or rejecting with a StatusCode otherwise.

Also in this Section