Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Realtime

Hierarchy

  • Realtime

Index

Constructors

constructor

  • Parameters

    • client: IFetchClient
    • Default value url: string = "/notification/realtime"
    • Optional handshakeCallback: any

    Returns Realtime

Methods

disconnect

  • disconnect(): void
  • Returns void

observable

  • observable(channel: string): Observable<any>
  • Parameters

    • channel: string

    Returns Observable<any>

subscribe

  • subscribe(channel: string, callback: function): object
  • Parameters

    • channel: string
    • callback: function
        • (data: any): void
        • Parameters

          • data: any

          Returns void

    Returns object

unsubscribe

  • unsubscribe(subscription: object): object
  • Parameters

    • subscription: object

    Returns object

Generated using TypeDoc