• Adds a listener to a chatroom that calls passed callback function when event fires.

    Parameters

    • arg: {
          roomId: string;
      }
      • roomId: string
    • callback: Function

    Returns Promise<void>

    Since

    1.18.0

    Example

    addMessageListener({roomId: string}, function(e){console.log(e)})
    

Generated using TypeDoc