Every channel is unique in some way, but there is flexibility in how it is achieved. The unique property on a channel is the CID, and it is a concatenation of the channel type and id. If an id is passed as a parameter during the initialization of a channel then it will be used, otherwise, an id will be generated based on the members of the channel.
When a channel is initiated using code such as
const mySoccerChannel = client.channel('messaging', 'soccer', {
name: 'Discuss how good Aberdeen FC is',
});
Then the cid, type, and ID may look something like.
"cid":"messaging:soccer",
"id": "soccer",
"type": "messaging"
Comments
0 comments
Please sign in to leave a comment.