send message programmatically

This commit is contained in:
Peter Maquiran
2022-01-10 12:15:27 +01:00
parent c398e3fa24
commit 77a8bfffa1
2 changed files with 8 additions and 0 deletions
@@ -29,6 +29,8 @@ class _RocketChatClientService {
return conditionToSend
}
private runRequestQueue(){}
connect(firstPingFunx: Function) {
this.hasPing = false
this.firstPingFunx = firstPingFunx
@@ -83,6 +85,7 @@ class _RocketChatClientService {
if(message.result) {
if(message.result.token) {
this.isLogin = true
this.runRequestQueue()
this.ws.wsMsgQueue()
resolve(message)
} else {