Using the following code doesn't actually create a channel unless you use watch(), query(), or create(). Instead, it creates a channel class instance.
const conversation = client.channel('messaging', 'thierry-tommaso-1', {
name: 'Founder Chat',
image: 'http://bit.ly/2O35mws',
members: ['thierry', 'tommaso'],
});
using one of the following will call the API and create the channel
await conversation.watch();
// or
await conversation.create();
// or by querying the channel
await conversation.query();
Comments
0 comments
Please sign in to leave a comment.