-
Notifications
You must be signed in to change notification settings - Fork 77
Cheatsheet
Vishal Narkhede edited this page Feb 8, 2021
·
15 revisions
// Check if the channel already exists.
const channels = await chatClient.queryChannels({
distinct: true,
members: ['vishal', 'neil'],
});
if (channels.length === 1) {
// Channel already exist
} else {
// Channel doesn't exist.
}client.setUser is a deprecated version of client.connectUser or setUser is precursor of connectUser. This change was introduced in 2.10.0 since connectUser better defines the job of this function.
client.setUser has been deprecated, so please use client.connectUser instead.
-- more things coming