Improve filter callback

This commit is contained in:
Peter Maquiran
2022-01-10 22:04:04 +01:00
parent 053c6034a7
commit d04a57b35c
6 changed files with 120 additions and 123 deletions
+6
View File
@@ -95,6 +95,7 @@ export class HomePage implements OnInit {
private RouteService: RouteService,
private RocketChatClientService: RocketChatClientService) {
this.RocketChatClientService.getRooms().then((rooms: any)=>{
console.log('rooms', rooms)
@@ -106,6 +107,7 @@ export class HomePage implements OnInit {
});
});
this.RocketChatClientService.receiveLiveMessageFromRoom(
'fsMwcNdufWvdnChj7ya9nF9cX2HizxxWAM',
this.constructor.name,
@@ -114,6 +116,10 @@ export class HomePage implements OnInit {
}
)
this.RocketChatClientService.loadHistory('fsMwcNdufWvdnChj7ya9nF9cX2HizxxWAM', 50).then((message)=>{
console.log('loadHistory', message)
})
window['jj'] = ()=>{
//send message // roomId // Message
this.RocketChatClientService.send('fsMwcNdufWvdnChj7ya9nF9cX2HizxxWAM', 'Mensagem enviada programaticamente.'+ new Date().toISOString())