Add presence listener callback that gets invoked with presence events whenever a user updates an attributes, joins, leaves or timeouts a channel
2.41.0
function onPresenceListener({event, message}){ // custom logic}addPresenceListener({ channel: "<your channel identifier>" }, onPresenceListener) Copy
function onPresenceListener({event, message}){ // custom logic}addPresenceListener({ channel: "<your channel identifier>" }, onPresenceListener)
Generated using TypeDoc
Description
Add presence listener callback that gets invoked with presence events whenever a user updates an attributes, joins, leaves or timeouts a channel
Async
Since
2.41.0
Example