Publish() method allows users to publish a message to one or more channels.