Class BrightBaseRealtime<T>

Type Parameters

  • T extends {
        [key: string]: unknown;
    }

Constructors

Properties

Methods

Constructors

Properties

name: string
status:
    | "SUBSCRIBED"
    | "TIMED_OUT"
    | "CLOSED"
    | "CHANNEL_ERROR" = 'CLOSED'

Methods

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • event: K
    • callback: ((data: T[K]) => void)
        • (data): void
        • Parameters

          • data: T[K]

          Returns void

    Returns (() => void)

      • (): void
      • Returns void