Hierarchy

  • CoreClient

Implements

Constructors

Properties

EVENT_CONNECT: string
EVENT_DISCONNECT: string
EVENT_RECONNECT: string
EVENT_RECONNECT_AUTH_FAILED: string
EVENT_REFRESH_TOKEN_UPDATED: string

Deprecated

EVENT_REQUEST_FAILED: string
EVENT_REQUEST_STARTED: string
EVENT_REQUEST_SUCCEEDED: string
FEATURES?: Features

A collection of feature flags that the JS API advertises. All must be nullable booleans, and if listed, the value is true.

Marked as nullable as past releases will not have this property, be sure to test for null if an older release might be in use.

LOGIN_TYPE_ANONYMOUS: string
LOGIN_TYPE_PASSWORD: string

Methods

  • Listen for events on this object.

    Type Parameters

    • T

      The type of the data that the event will provide.

    Parameters

    • name: string

      The name of the event to listen for.

    • callback: ((e) => void)

      A function to call when the event occurs.

        • (e): void
        • Parameters

          Returns void

    Returns (() => void)

    Returns a cleanup function.

      • (): void
      • Returns void

  • Returns void

  • Returns Promise<string[][]>

  • Returns Promise<string[][]>

  • Returns string

  • Parameters

    Returns Promise<void>

  • Type Parameters

    • T

    Parameters

    • eventName: string
    • Optional timeoutInMillis: number

    Returns Promise<Event<T>>

  • Resolves when the client is connected.

    Parameters

    • Optional timeoutInMillis: number

      ignored, only exists for legacy callers

    Returns Promise<void>

    a promise that resolves when connection is established, or rejects if connection fails

  • Parameters

    Returns Promise<void>

  • Removes an event listener added to this table.

    Type Parameters

    • T

    Parameters

    • name: string
    • callback: ((e) => void)
        • (e): void
        • Parameters

          Returns void

    Returns boolean