Summary
In this chapter, we learned about event-based applications, WebSockets, and Socket.IO. Then, we set up Socket.IO on the backend (server) and frontend (client). Afterward, we learned how to send messages between the server and client, how to join rooms, and how to broadcast messages. We also used acknowledgments to get information about a user in a request-response pattern with Socket.IO. Finally, we implemented authentication using JWT in Socket.IO, finalizing our chat app backend.
In the next chapter, Chapter 14, Creating a Frontend to Consume and Send Events, we are going to create a frontend for our chat app, which is going to interact with the backend we created in this chapter.