Set up messages
All PubNub-powered applications use messages, whether that’s a chat message, device sensor readings, GPS coordinates, or other type of data. All messages are sent in channels, and for a device or user to receive that message, they must join that channel by subscribing.
As well as receiving messages, you can also use channels for sending, retrieving, securing, deleting, augmenting, and more.
Try it out
Edit the code below from
Click Subscribe to connect to the channel to start receiving messages