presence
actual abstract fun presence(channels: List<String>, channelGroups: List<String>, connected: Boolean)
Track the online and offline status of users and devices in real time and store custom state information. When you have Presence enabled, PubNub automatically creates a presence channel for each channel.
Subscribing to a presence channel or presence channel group will only return presence events
Parameters
channels
Channels to subscribe/unsubscribe. Either channel or channelGroups are required.
channelGroups
Channel groups to subscribe/unsubscribe. Either channelGroups or channels are required.