Options
All
  • Public
  • Public/Protected
  • All
Menu

This class to manage notification

Hierarchy

  • WemNotificationProvider

Index

Constructors

Properties

embeddedPageLoaded: boolean = false
embeddedPagesLinks: string[] = []
isRecordingNotificationEnabled: boolean = null
logger: Logger = ...
notificationBase: CXoneNotificationManager = ...
notificationMessages: WemNotificationMessage[] = []
validationUtils: ValidationUtils = ...
wemNotificationSvc: WemNotificationService = ...
wemWorker: any

Methods

  • attemptReconnect(): void
  • handleWemNotificationWSResponse(wsResponse: WsResponse, isPostedFromLeader?: boolean): Promise<void>
  • initWemNotificationWorker(): void
  • initialWemNotifications(): Promise<void>
  • isSupportedByEmbeddedPages(notificationURL: string): boolean
  • This method to get embedded pages links and publish wem notification whenever we get response of that api we set "embeddedPageLoaded" property true then process the messages from notificationMessages array and publish the notification to the consumer

    example
    onWemEmbeddedPageLinkResponse(response)
    

    Parameters

    Returns Promise<void>

  • This method to manipulate and publish notification messages when websocket is connection is authenticate we receive "CONNECTED" command from ws server so first we getEmbeddedPages api and in which we required embedded pages links to filter notification messages until we will not api response will store the all messages into "notificationMessages" array.

    example
    onWemNotificationMessage(message)
    

    Parameters

    Returns Promise<void>

Generated using TypeDoc