This commit is contained in:
Peter Maquiran
2022-01-14 14:53:27 +01:00
parent fde1dd241f
commit 46c6860625
-25
View File
@@ -234,31 +234,6 @@ export class WsChatService {
}
/**
* @param roomId
* @param key
* @param funx
*/
receiveMyMessageConfirmation(roomId, funx: Function) {
this.ws.registerCallback({
type:'Onmessage',
funx:(message)=>{
if(message.msg =='result') {
if(message.result) {
if(message.result.msg) {
if(message.result.rid == roomId) {
funx(message)
}
}
}
}
}
})
}
receiveLiveMessageFromRoom(roomId, funx: Function) {
const key = roomId + funx;