Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ServerEventsClient

Index

Constructors

Properties

EventSource: IEventSourceStatic
_onMessage: ((e: IOnMessageEvent) => void)

Type declaration

channels: string[]
connectionInfo: ServerEventConnect
eventSource: IEventSourceStatic
eventStreamUri: string
listeners: {}

Type declaration

onError: ((error?: any) => void)

Type declaration

    • (error?: any): void
    • Parameters

      • Optional error: any

      Returns void

onMessage: ((e: IOnMessageEvent) => void)

Type declaration

resolver: IResolver
serviceClient: JsonServiceClient
stopped: boolean
updateSubscriberUrl: string
withCredentials: boolean
UnknownChannel: string

Methods

  • getEventSourceOptions(): { withCredentials: boolean }
  • Returns { withCredentials: boolean }

    • withCredentials: boolean
  • getSubscriptionId(): string
  • hasConnected(): boolean
  • invokeReceiver(r: any, cmd: string, el: Element, request: ServerEventMessage, name: string): void
  • stop(): Promise<void>
  • subscribeToChannels(...channels: string[]): Promise<void>
  • Parameters

    • Rest ...channels: string[]

    Returns Promise<void>

  • unsubscribeFromChannels(...channels: string[]): Promise<void>
  • Parameters

    • Rest ...channels: string[]

    Returns Promise<void>

  • update(subscribe: string | string[], unsubscribe: string | string[]): void
  • Parameters

    • subscribe: string | string[]
    • unsubscribe: string | string[]

    Returns void

  • updateChannels(channels: string[]): void

Generated using TypeDoc