To publish message to any channel, use the ‘publish’ method as follows:
cometClient.publish("channelToPublish", "Your Message");
To publish message to any channel, use the ‘publish’ method as follows:
cometClient.publish("channelToPublish", "Your Message");