make code cleaner

This commit is contained in:
Peter Maquiran
2022-01-12 21:12:39 +01:00
parent ddcd3f3e58
commit 4793328ff3
2 changed files with 2 additions and 4 deletions
-1
View File
@@ -36,7 +36,6 @@ export class RoomService {
receiveMessage() {
this.WsChatService.receiveLiveMessageFromRoom(
this.id,
this.constructor.name+this.id,
(Chatmessage) => {
Chatmessage = this.fix_updatedAt(Chatmessage)
+2 -3
View File
@@ -196,14 +196,13 @@ export class WsChatService {
/**
* @param roomId
* @param key
* @param funx
*/
receiveLiveMessageFromRoom(roomId =')(', key, funx: Function) {
receiveLiveMessageFromRoom(roomId, funx: Function) {
this.ws.registerCallback({
type:'Onmessage',
requestId: key,
key: this.constructor.name+roomId,
funx:(message)=>{
if(message.msg =='result') {
if(message.result.msg) {