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

Properties

status$: Observable<SessionStatus>

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.

    Parameters

    • name: string

      The name of the logger

    Returns any

    A logger instance

  • Notifies a push token to the WAC.

    Parameters

    • tokenType: "apn" | "ms-teams" | "web-push" | "firebase"
    • token: string

    Returns Promise<void>

  • 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>