客户端消息发送

This commit is contained in:
2023-09-25 19:15:47 +08:00
parent daa9c98598
commit 161631f6a0
22 changed files with 153 additions and 359 deletions

View File

@@ -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) {