Options
All
  • Public
  • Public/Protected
  • All
Menu

Presence contains APIs for presence operations.

Index

Functions

getPresenceStatus

Const getSubscribedPresencelist

publishPresence

subscribePresence

  • 订阅指定用户的在线状态。订阅成功后,在线状态变更时订阅者会收到回调通知。

    connection.subscribePresence({usernames: ['user1','user2'], expiry: 10000})
    

    Parameters

    Returns Promise<AsyncResult<SubscribePresenceResult>>

unsubscribePresence

Generated using TypeDoc