• Parameters

    Returns Promise<void>

    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

    function onPresenceListener({event, message}){
    // custom logic
    }
    addPresenceListener({ channel: "<your channel identifier>" }, onPresenceListener)

Generated using TypeDoc