make code cleaner

This commit is contained in:
Peter Maquiran
2022-01-12 21:25:23 +01:00
parent 4793328ff3
commit 2bd0cbf26f
+3 -2
View File
@@ -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) {