Function addPresenceListener

  • 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

    0.1.0

    Example

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

Generated using TypeDoc