Complete the code to publish a message to a channel.
PUBLISH [1] "Hello, world!"
The PUBLISH command sends a message to a specific channel, here the channel name is news.
Complete the code to subscribe to a channel for receiving messages.
SUBSCRIBE [1]The SUBSCRIBE command listens to messages sent to the news channel.
Fix the error in the command to subscribe to multiple channels.
SUBSCRIBE [1]To subscribe to multiple channels, list them separated by spaces without commas or other punctuation.
Fill both blanks to publish a message and subscribe to the same channel.
PUBLISH [1] "Update available" SUBSCRIBE [2]
Both publishing and subscribing must use the same channel name to enable real-time messaging.
Fill all three blanks to subscribe to channels and publish a message to one.
SUBSCRIBE [1] [2] PUBLISH [3] "System rebooted"
You subscribe to multiple channels by listing them separated by spaces. Publishing uses one of those channels.