Building an Event-Based Backend Using Express and Socket.IO
In this chapter, we will learn about event-based applications and the tradeoffs of using such an architecture versus a more traditional one. Then, we are going to learn about WebSockets and how they work. Afterward, we are going to implement a backend using Socket.IO and Express. Finally, we are going to learn how to integrate authentication by using JWT with Socket.IO.
In this chapter, we are going to cover the following main topics:
- What are event-based applications?
- Setting up Socket.IO
- Creating a backend for a chat app using Socket.IO
- Adding authentication by integrating JWT with Socket.IO