Class Session

Session objects manage communications for a given user identity. They are obtained by calling the createSession method of the Sippo object.

Hierarchy

  • EventEmitter2
    • Session

Constructors

  • Parameters

    • Optional options: ConstructorOptions

    Returns Session

Methods

  • Creates a new data pipe instance for data exchange with the specified recipient.

    Parameters

    • participants: string[]
    • Optional label: string

    Returns DataPipe

  • Creates a new instance of a Selfie.

    Parameters

    • to: string

    Returns Promise<any>

  • Destroy every existent token for the deviceId of this session.

    Returns any

  • Retrieves an array with the underlying capabilities.

    Returns Set<string>

  • Returns the username in the gateway of the user owning this session.

    Returns string

  • Retrieves a Logger instance to log events in the WAC.

    Returns

    A logger instance

    Parameters

    • name: string

      The name of the logger

    Returns any

  • Notifies a push token to the WAC.

    Parameters

    • tokenType: string
    • token: string

    Returns any

  • Retrieves a promise which is resolved with the settings array.

    Returns Promise<any>

  • Suspend current session: WAC will not send or receive any message.

    Returns Promise<any>

Generated using TypeDoc