ably-js
ably-js copied to clipboard
channels.all not exposed in typescript types
I was just looking for a way to ensure that all channels have been detached and released before I try to re-authorize the client with a different set of capabilities. I found that the actual instance of my realtime client provides a .all
property on the channels object. But it's not exposed through the typescript definitions.
Is this intended behaviour or do I need to use a different way to instantiate my client?
Here is the particular code I'm talking about: https://github.com/ably/ably-js/blob/186de0b1538ccc089aed9a2a7ff9afd3cb0ea793/src/common/lib/client/baserealtime.ts#L93
and I instantiate the client as mentioned in the docs:
import * as Ably from 'ably';
let options: Ably.ClientOptions = { key: 'foo' };
let client = new Ably.Realtime(options); /* inferred type Ably.Realtime */
let channel = client.channels.get('feed'); /* inferred type Ably.RealtimeChannel */