Please enable JavaScript.
Coggle requires JavaScript to display documents.
Chat feature - Coggle Diagram
Chat feature
Chat Redux
conversation list
message list
actions
mark read message object
backend
NodeJS
Socket IO
on user join
fetch all associated conversations and push to connected socket
join room to existing conversations
initiate chat
if conversation id exist return it
if conversation id does not exist
create new conversation object
MongoDB
Create new conversation object
add new member to conversation object
fetch all messages for conversation_id
Chat screen
Participant List
Current conversations
App level socket
Connect to socket with conference namespace
fetch previous conversations and populate redux
online status
fetching user status from nodejs
use socket status
persist in redux