客户端消息发送
This commit is contained in:
@@ -278,6 +278,24 @@ export class ImClient {
|
||||
resolve(resp);
|
||||
})
|
||||
}
|
||||
|
||||
public getUserSequence(): Promise<any> {
|
||||
return new Promise((resolve, _) => {
|
||||
let api = new HttpApi(this.httpUrl);
|
||||
let resp = api.call("/user/getUserSequence", this.getRequestParams(), { userId: this.userId })
|
||||
resolve(resp);
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
public getUserConversationList(lastSequence:Long): Promise<any> {
|
||||
return new Promise((resolve, _) => {
|
||||
let api = new HttpApi(this.httpUrl);
|
||||
let resp = api.call("/conversation/syncConversationList", this.getRequestParams(), { userId: this.userId,appId:this.appId,maxLimit:100, lastSequence:lastSequence })
|
||||
resolve(resp);
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 2、心跳
|
||||
private heartbeatLoop(conn) {
|
||||
|
||||
Reference in New Issue
Block a user