Merge branch 'feature/websocket' of https://bitbucket.org/equilibriumito/gabinete-digital into feature/websocket

This commit is contained in:
tiago.kayaya
2022-01-12 11:53:46 +01:00
12 changed files with 317 additions and 156 deletions
+1 -28
View File
@@ -94,34 +94,7 @@ export class HomePage implements OnInit {
private sqliteservice: SqliteService,
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)
rooms.result.update.forEach((room:any) => {
console.log('room', room)
this.RocketChatClientService.subscribe(room.lastMessage.rid).then((subscription)=>{
console.log('subscription', subscription)
})
});
});
this.RocketChatClientService.receiveLiveMessageFromRoom(
'fsMwcNdufWvdnChj7ya9nF9cX2HizxxWAM',
this.constructor.name,
(Chatmessage)=>{
console.log('chat', Chatmessage)
}
) */
window['jj'] = ()=>{
window['jj'] = ()=> {
//send message // roomId // Message
//this.RocketChatClientService.send('fsMwcNdufWvdnChj7ya9nF9cX2HizxxWAM', 'Mensagem enviada programaticamente.'+ new Date().toISOString())
}