diff --git a/src/app/home/home.page.ts b/src/app/home/home.page.ts index 108afe3d4..696add888 100644 --- a/src/app/home/home.page.ts +++ b/src/app/home/home.page.ts @@ -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) diff --git a/src/app/services/socket/rocket-chat-client.service.ts b/src/app/services/socket/rocket-chat-client.service.ts index 83c641e14..a79172adb 100644 --- a/src/app/services/socket/rocket-chat-client.service.ts +++ b/src/app/services/socket/rocket-chat-client.service.ts @@ -3,7 +3,7 @@ import { v4 as uuidv4 } from 'uuid' import { wsCallbacksParams, msgQueue } from 'src/app/models/rochet-chat-cliente-service' /** - * Use this class to interact with rocketchat realtime API + * Use this class to interact with rocketChat realtime API */ class _RocketChatClientService {