Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AutoSummaryNotificationService

web socket base class for Auto summary digital and voice.

Hierarchy

Index

Constructors

Properties

IsSubscribeDummyResponse: boolean = true
agentAssistInput: AgentAssistInput = empytyAgentAssistInput
auth: CXoneAuth = CXoneAuth.instance
connectionId: string = ''
isConnectionCreated: boolean = false
logger: Logger
onAutoSummaryMessageNotification: Subject<AgentAssistMessageResponse> = ...
subscriptions: string[] = []
topic: string = ''
wssWorker: any

Methods

  • broadcastAutoSummary(message: JSONValue): void
  • used to broadcast the message to other tabs.

    example
    • broadcastAutoSummary(responseMessage);

    Parameters

    Returns void

  • close(): void
  • connect(websocketServerUri: string): boolean
  • used to connect to the socket.

    example
    • connect('ws://localhost:8080');

    Parameters

    • websocketServerUri: string

      websocketServer uri

    Returns boolean

  • disconnectWebsocket(): void
  • initLogger(providerId: string): void
  • Use to initializing the web socket worker and will return the method inside the worker

    example
    this.initLogger('ccai');
    

    Parameters

    • providerId: string

      AAH provider

    Returns void

  • initWebSocketWorker(providerId: string): void
  • onClosed(): void
  • onError(): void
  • onMessage(responseMessage: any): void
  • onOpen(): void
  • onReconnect(_msg: any): void
  • onReconnectComplete(): void
  • onReconnectSuccess(): void
  • reconnectWebsocket(): void
  • sendMessage(msg: unknown, wsWorker: any): void
  • subscribeToSocket(topic: string): boolean
  • terminateWebSocketWorker(): void
  • unsubscribeContact(subscriptionId: string): void
  • used to unsubscribe and disconnect to socket events.

    example
    • unsubscribeContact(subscriptionId);

    Parameters

    • subscriptionId: string

    Returns void

Generated using TypeDoc