From 2bd0cbf26f1592dabfdd6e4d542526172387515e Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Wed, 12 Jan 2022 21:25:23 +0100 Subject: [PATCH] make code cleaner --- src/app/services/chat/ws-chat.service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/services/chat/ws-chat.service.ts b/src/app/services/chat/ws-chat.service.ts index 2149ebb8b..31a6c8cf9 100644 --- a/src/app/services/chat/ws-chat.service.ts +++ b/src/app/services/chat/ws-chat.service.ts @@ -196,13 +196,14 @@ export class WsChatService { /** * @param roomId + * @param key * @param funx */ - receiveLiveMessageFromRoom(roomId, funx: Function) { + receiveLiveMessageFromRoom(roomId, funx: Function) { this.ws.registerCallback({ type:'Onmessage', - key: this.constructor.name+roomId, + key: this.constructor.name+'receiveLiveMessageFromRoom'+roomId, funx:(message)=>{ if(message.msg =='result') { if(message.result.msg) {