Please enable JavaScript.
Coggle requires JavaScript to display documents.
ChatService - Coggle Diagram
ChatService
Channel1
subscribeToMessage(type: new): IMessage
getLastMessages(count, lastMessage?): Array<IMessage>
sendMessage(message: IMessage): Promise<IReceipt>
CRUD
OWNER
state: messages
NotificationChannel
Widget P2P Chats
VueCompnentChannel1
VueComopnentChannel2
VueComponentChannel3
NotificationWidget (show/hide notifications)
Backend
ChatService
Channel1
Channel2
Channel3
NotificationChannel
SyncToBackend
Receipt tiket
Channel2
Channel3
subscribeToChannel(channelId: 1, options: {}): Channel1
unsubscribeChannel(channelId: 1)
getChannelListByType(type: string): Array<IChannel>