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) {