Add presence listener callback that gets invoked with presence events whenever a user updates an attributes, joins, leaves or timeouts a channel
0.1.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
0.1.0
Example