Fix all websocket bugs

This commit is contained in:
Peter Maquiran
2022-01-10 22:35:44 +01:00
parent d04a57b35c
commit 9c043e9853
2 changed files with 19 additions and 18 deletions
+4 -3
View File
@@ -95,6 +95,10 @@ export class HomePage implements OnInit {
private RouteService: RouteService,
private RocketChatClientService: RocketChatClientService) {
this.RocketChatClientService.loadHistory('fsMwcNdufWvdnChj7ya9nF9cX2HizxxWAM', 10).then((message)=>{
console.log('loadHistory', message)
})
this.RocketChatClientService.getRooms().then((rooms: any)=>{
console.log('rooms', rooms)
@@ -116,9 +120,6 @@ export class HomePage implements OnInit {
}
)
this.RocketChatClientService.loadHistory('fsMwcNdufWvdnChj7ya9nF9cX2HizxxWAM', 50).then((message)=>{
console.log('loadHistory', message)
})
window['jj'] = ()=>{
//send message // roomId // Message