This commit is contained in:
Peter Maquiran
2022-01-12 14:02:43 +01:00
parent 8aec66bcaf
commit 7f8c7c6360
+2
View File
@@ -46,10 +46,12 @@ export class WsChatService {
return new Promise((resolve, reject) => {
this.ws.registerCallback({type:'Onmessage', requestId, funx:(message)=>{
console.log('message login', message)
if(message.id == requestId ) { // same request send
console.log('message login', message)
if(message.result.token) {
console.log('this.isLogin = true')
this.isLogin = true
this.ws.wsMsgQueue()