Gets the member list of the channel.
The Promise resolves after the user gets the member list of the channel in an array with the channel's uids.
Allows a user to join a channel. After joining the channel, the user can receive channel messages and notifications of other users joining or leaving the channel.
You can join a maximum of 20 channels.
The Promise resolves after the user successfully joins the channel.
Allows a user to leave a joined channel. After leaving the channel, the user does not receive channel messages or notifications of users joining or leaving the channel.
The Promise resolves after the user successfully leaves the channel.
Adds the listener
function to the channel for the event named eventName
. See the EventEmitter
API documentation for other event methods on the RtmChannel
instance.
The name of the channel event. See the property names in the RtmChannelEvents for the list of events.
The callback function of the channel event.
Allows a user to send a message to all users in a channel.
You can send messages, including peer-to-peer and channel messages at a maximum speed of 60 queries per second.
The message to be sent.
The Promise resolves after the user successfully sends a channel message.
The RTM channel instance created by calling the createChannel method of the RtmClient instance.