Skip to main content

SalesforceStreamingObservable

Index

Properties

publicreadonlyclient

client: CometD

publicreadonlysubscriptions

subscriptions: Record<string, SubscriptionHandle>

Methods

publicconnect

  • connect(): Promise<Message>
  • Returns Promise<Message>

publicdisconnect

  • disconnect(): void
  • Returns void

publicsubscribe

  • subscribe(channel: string, cb: (message: Message) => void): Promise<Message>
  • Parameters

    • channel: string
    • cb: (message: Message) => void

    Returns Promise<Message>

publicunsubscribe

  • unsubscribe(channel: string): Promise<Message>
  • Parameters

    • channel: string

    Returns Promise<Message>

publicstaticcreate