Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SessionManager

Index

Properties

Optional appToken

appToken: string

Optional identity

identity: string

Optional sessionToken

sessionToken: string

startSession

startSession: (params: SessionParams, callback?: AsyncCallback<SessionState>) => Promise<SessionState>

Type declaration

state

stopSession

stopSession: () => void

Type declaration

    • (): void
    • Returns void

subscribe

subscribe: <FullEventMap, Event>(event: Event, callback: EventHandler<Event, FullEventMap[Event]>) => () => void

Type declaration

    • <FullEventMap, Event>(event: Event, callback: EventHandler<Event, FullEventMap[Event]>): () => void
    • Subscribe on event

      Type parameters

      • FullEventMap: { stateChanged: { state: SessionState } } & { *: any }

      • Event: string

      Parameters

      • event: Event

        This string can contain: event name, namespace of event name, list of event names separated by a space or '*' to subscribe on all events

      • callback: EventHandler<Event, FullEventMap[Event]>

        Callback function

      Returns () => void

      • Function that cancels current subscription
        • (): void
        • Returns void

unsubscribe

unsubscribe: <FullEventMap, Event>(event: Event, callback?: EventHandler<Event, FullEventMap[Event]>) => void

Type declaration

    • <FullEventMap, Event>(event: Event, callback?: EventHandler<Event, FullEventMap[Event]>): void
    • Unsubscribe from event

      Type parameters

      • FullEventMap: { stateChanged: { state: SessionState } } & { *: any }

      • Event: string

      Parameters

      • event: Event

        This string can contain: event name, namespace of event name, list of event names separated by a space or '*' to unsubscribe from all events

      • Optional callback: EventHandler<Event, FullEventMap[Event]>

        Callback function

      Returns void

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Property
  • Method
  • Inherited property

Generated using TypeDoc