Type aliases
ChannelId
ChannelId: string
Functions
addEventListener
- addEventListener(event: "channel-changed", listener: ChannelChangedListener, identity?: Identity): void
-
Parameters
-
event: "channel-changed"
-
listener: ChannelChangedListener
-
Optional identity: Identity
Returns void
getAllChannels
- getAllChannels(): Promise<Channel[]>
getChannel
- getChannel(identity?: Identity): Promise<Channel>
-
Parameters
-
Optional identity: Identity
Returns Promise<Channel>
getChannelMembers
- getChannelMembers(id: ChannelId): Promise<Identity[]>
-
Parameters
Returns Promise<Identity[]>
joinChannel
- joinChannel(id: ChannelId, identity?: Identity): Promise<void>
-
Parameters
-
-
Optional identity: Identity
Returns Promise<void>
Event that is fired whenever a window changes from one channel to another.
This includes switching to/from the global channel. The
channel
andpreviousChannel
fields use the same conventions for denoting the global channel asgetChannel
.