O'Reilly logo

Mastering Reactive JavaScript by Erich de Souza Oliveira

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A Real-Time Client

In the last chapter, we implemented our first application using functional reactive programming; we decided to implement a real-time web chat using WebSockets because of its inherit nature of interactivity, making it a perfect candidate for functional reactive programming.

We decided to use RxJS in all levels of the application; we used it to:

  • Model servers and incoming WebSocket connections
  • Implement the business rule for some services
  • Implement the DataSource of our application
  • Implement the tests of our application

In our server implementation, we had the opportunity to implement observables from different sources and even implement a subject to push data.

From the tests perspective, we decided to implement some basic ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required