Interface Channels<T>

Creates and destroys Channel and RealtimeChannel objects.

Type Parameters

  • T

Hierarchy

  • Channels

Properties

all

Methods

Properties

all: Record<string, T>

All of the channels that exist in this Channels object.

Channels are added here when created using get, and removed when released using release.

Methods

  • Releases all SDK-held references to a Channel or RealtimeChannel object, enabling it to be garbage collected. Warning: this method has no guardrails; using a channel reference after it has been released is undefined behaviour. It can be useful for applications that work with a continually changing set of channels on a single client and need to avoid unbounded memory growth; if this does not describe you, don't call it. Realtime channels not already in the INITIALIZED, DETACHED, or FAILED state are detached before release.

    Parameters

    • name: string

      The channel name.

    Returns void

Generated using TypeDoc