Sending Messages in the Chatroom
Explore how to send messages within a reactive chatroom using RxJS techniques. Learn to manage event streams with operators such as merge and withLatestFrom, ensuring messages are properly annotated with user and room data before sending. By the end, you will understand how to enable users to send messages effectively while maintaining reactivity and controlling event flows.
We'll cover the following...
We'll cover the following...
Sending messages
Now that the user can see the current rooms and the messages sent to them, it’s time to let them send messages of their own.
Compared to the two sections in the chat room so far, sending messages is fairly simple.
Sending chat room messages using merge
It starts with the same technique as the login modal, using merge to ...