Interface MessagingSession

interface MessagingSession {
    addObserver(observer: MessagingSessionObserver): void;
    forEachObserver(
        observerFunc: (observer: MessagingSessionObserver) => void,
    ): void;
    removeObserver(observer: MessagingSessionObserver): void;
    start(): Promise<void>;
    stop(): void;
}

Implemented by

Methods

  • Start a messaging session. This promise is fulfilled when messaging session is established successfully. Promise is rejected when there are errors in communicating to messaging endpoint or connection is Unauthorized.

    Returns Promise<void>