PubNub
During the tour you may want access to your IDE or new windows to see your code working. You’ll get the best experience viewing on a larger device.

Online activity

To understand which users are active in a channel, you need to enable the Presence feature. Once enabled, this feature is active across all of your channels and provides insight such as seeing each channels' occupancy, custom information, typing notifications, location, and more.

Try it out

Subscribe to the presence channel - doing so will let you see users arrive and leave in real-time.

Add extra users to the channel using the button, or command at the bottom of the page

Run the hereNow code to see how many people are currently in this channel

Subscribe
Subscribe to my_channel with Presence
Messages
Here Now
1 {}

See for yourself

Run this command to add another user to this channel. To add multiple users you can refresh this page for a new UUID.