dibs-devs / chatter

A simple Chat App for Django based on channels and websockets
MIT License
85 stars 29 forks source link

"User is typing..." message #34

Open ishtiaque06 opened 5 years ago

ishtiaque06 commented 5 years ago

When a user starts typing on the chat, show that update to the other user(s) that are online in the chatroom.

This can be done by sending a message down the chatSocket.js object and echoing it out on the other end. Since each message sent through chatSocket object has an associated message_type string, this can be used to filter what type of message is being sent to the channels consumer for it to process and echo it back into the channel layer.