This commit is contained in:
Peter Maquiran
2022-02-10 15:27:13 +01:00
parent be0bd47456
commit 0cc6c1a84f
3 changed files with 5 additions and 6 deletions
-4
View File
@@ -678,8 +678,6 @@ updateRoomEventss(roomId, collection:string, funx: Function, ) {
} else {
let messageStr = JSON.stringify(message)
console.log('send', messageStr)
this.socket.send(messageStr)
}
return requestId
@@ -688,8 +686,6 @@ updateRoomEventss(roomId, collection:string, funx: Function, ) {
onmessage: async (event: any)=> {
const data = JSON.parse(event.data)
console.log('onmessage', data)
for (const [key, value] of Object.entries(this.wsCallbacks)) {
if(value.type== 'Onmessage') {
const dontRepeat = await value.funx(data)