Creates a new Channel or RealtimeChannel object, with the specified ChannelOptions, or returns the existing channel object.
The channel name.
Optional channelOptions: ChannelOptions
A ChannelOptions object.
A Channel or RealtimeChannel object.
Experimental
Creates a new Channel or RealtimeChannel object, with the specified channel DeriveOptions and ChannelOptions, or returns the existing channel object.
This is a preview feature and may change in a future non-major release. This experimental method allows you to create custom realtime data feeds by selectively subscribing to receive only part of the data from the channel. See the announcement post for more information.
The channel name.
A DeriveOptions object.
Optional channelOptions: ChannelOptions
A ChannelOptions object.
A RealtimeChannel object.
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.
The channel name.
Generated using TypeDoc
Creates and destroys Channel and RealtimeChannel objects.