This commit is contained in:
Peter Maquiran
2022-01-10 13:37:22 +01:00
parent b82239741b
commit d6605c519c
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -117,11 +117,15 @@ export class HomePage implements OnInit {
})
});
})
this.RocketChatClientService.subscribe('fsMwcNdufWvdnChj7ya9nF9cX2HizxxWAM').then((subscription)=>{
console.log(subscription)
})
//send message // roomId // Message
this.RocketChatClientService.send('fsMwcNdufWvdnChj7ya9nF9cX2HizxxWAM', 'Mensagem enviada programaticamente.'+ new Date().toISOString())
}).catch((message)=>{
console.log('rocket chat login failed', message)