mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
make code cleaner
This commit is contained in:
@@ -36,7 +36,6 @@ export class RoomService {
|
||||
receiveMessage() {
|
||||
this.WsChatService.receiveLiveMessageFromRoom(
|
||||
this.id,
|
||||
this.constructor.name+this.id,
|
||||
(Chatmessage) => {
|
||||
|
||||
Chatmessage = this.fix_updatedAt(Chatmessage)
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user