Building a Chat Room

Chat systems are a favorite practice realm for programmers. You need to build out a two-way communications backbone, as well as a reactive UI on top of it. Subjects can help you enormously, handling both the real-time communication and data storage for use by components initialized after load. An example of this would be a subject recording the chat history in the background so that when the user opens that room, they’ll see the most recent messages without needing an additional request.

This excercise is a capstone project for everything you’ve learned so far in this book. The goal is to connect many reactive streams to build an entire application. Extraneous functions to perform the raw DOM manipulation around displaying ...

Get Build Reactive Websites with RxJS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.