mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
save
This commit is contained in:
@@ -254,6 +254,8 @@ export class WsChatService {
|
||||
this.ws.registerCallback({type:'Onmessage', funx:(message)=>{
|
||||
if(message.id == requestId ) { // same request send
|
||||
resolve(message)
|
||||
console.log(message);
|
||||
|
||||
return true
|
||||
}
|
||||
}})
|
||||
@@ -636,7 +638,7 @@ updateRoomEventss(roomId, collection:string, funx: Function, ) {
|
||||
setTimeout(()=>{
|
||||
this.ws.wsMsgQueue()
|
||||
}, 10)
|
||||
|
||||
|
||||
if(this.wsReconnect >= 1) {
|
||||
for (const [key, value] of Object.entries(this.wsCallbacks)) {
|
||||
if(value.type== 'reConnect') {
|
||||
@@ -679,7 +681,7 @@ updateRoomEventss(roomId, collection:string, funx: Function, ) {
|
||||
} else {
|
||||
let messageStr = JSON.stringify(message)
|
||||
// console.log('messageStr', messageStr)
|
||||
|
||||
|
||||
this.socket.send(messageStr)
|
||||
}
|
||||
return requestId
|
||||
|
||||
Reference in New Issue
Block a user