Functions
getPresenceStatus
- getPresenceStatus(params: { usernames: string[]; error?: any; success?: any }): Promise<AsyncResult<PresenceTypes.SubscribePresenceResult>>
Parameters
params: { usernames: string[]; error?: any; success?: any }
usernames: string[]
error?:function
- error(error: ErrorEvent): void
success?:function
- success(res: AsyncResult<SubscribePresenceResult>): void
Returns Promise<AsyncResult<PresenceTypes.SubscribePresenceResult>>
getSubscribedPresenceList
- getSubscribedPresenceList(params: { pageNum: number; pageSize: number; error?: any; success?: any }): Promise<AsyncResult<PresenceTypes.GetSubscribedPresenceListResult>>
Parameters
params: { pageNum: number; pageSize: number; error?: any; success?: any }
pageNum: number
pageSize: number
error?:function
- error(error: ErrorEvent): void
success?:function
- success(res: AsyncResult<GetSubscribedPresenceListResult>): void
Returns Promise<AsyncResult<PresenceTypes.GetSubscribedPresenceListResult>>
publishPresence
- publishPresence(params: { description: string; error?: any; success?: any }): void | Promise<AsyncResult<PresenceTypes.PublishPresenceResult>>
Parameters
params: { description: string; error?: any; success?: any }
description: string
error?:function
- error(error: ErrorEvent): void
success?:function
Returns void | Promise<AsyncResult<PresenceTypes.PublishPresenceResult>>
subscribePresence
- subscribePresence(params: { expiry: number; usernames: string[]; error?: any; success?: any }): Promise<AsyncResult<PresenceTypes.SubscribePresenceResult>>
Parameters
params: { expiry: number; usernames: string[]; error?: any; success?: any }
expiry: number
usernames: string[]
error?:function
- error(error: ErrorEvent): void
success?:function
- success(res: AsyncResult<SubscribePresenceResult>): void
Returns Promise<AsyncResult<PresenceTypes.SubscribePresenceResult>>
unsubscribePresence
- unsubscribePresence(params: { usernames: string[]; error?: any; success?: any }): Promise<AsyncResult<PresenceTypes.PublishPresenceResult>>
Parameters
params: { usernames: string[]; error?: any; success?: any }
usernames: string[]
error?:function
- error(error: ErrorEvent): void
success?:function
Returns Promise<AsyncResult<PresenceTypes.PublishPresenceResult>>
查询指定用户的当前在线状态。