This commit is contained in:
Peter Maquiran
2022-02-09 17:30:05 +01:00
parent a04be313c1
commit f9c646c8eb
2 changed files with 5 additions and 2 deletions
@@ -67,7 +67,6 @@ export class WsChatMethodsService {
funx: ()=>{ funx: ()=>{
this.subscribeToRoom() this.subscribeToRoom()
if(this.getDmRoom(this.currentRoom)) { if(this.getDmRoom(this.currentRoom)) {
this.getDmRoom(this.currentRoom).loadHistory({forceUpdate: true}) this.getDmRoom(this.currentRoom).loadHistory({forceUpdate: true})
} else if(this.getGroupRoom(this.currentRoom)) { } else if(this.getGroupRoom(this.currentRoom)) {
+5 -1
View File
@@ -629,7 +629,11 @@ updateRoomEventss(roomId, collection:string, funx: Function, ) {
console.log('================== welcome to socket server =====================') console.log('================== welcome to socket server =====================')
this.ws.wsMsgQueue()
setTimeout(()=>{
this.ws.wsMsgQueue()
}, 10)
if(this.wsReconnect >= 1) { if(this.wsReconnect >= 1) {
for (const [key, value] of Object.entries(this.wsCallbacks)) { for (const [key, value] of Object.entries(this.wsCallbacks)) {
if(value.type== 'reConnect') { if(value.type== 'reConnect') {