add subscribe method to user logged

This commit is contained in:
tiago.kayaya
2022-01-17 14:39:12 +01:00
parent cdecf4f5cc
commit 05a1b4a82a
2 changed files with 50 additions and 18 deletions
@@ -42,7 +42,7 @@ export class WsChatMethodsService {
rooms.result.update.forEach((roomData: room) => {
let room:RoomService;
// console.log(roomData);
//console.log(roomData);
room = new RoomService(this.WsChatService, new MessageService())
@@ -87,6 +87,10 @@ export class WsChatMethodsService {
console.log('streamRoomMessages', subscription)
})
}
this.WsChatService.streamNotifyLogged().then((subscription=>{
console.log('streamRoomMessages', subscription)
}))
}
getDmRoom(id): RoomService {