Chapter 6. Building a Live Score Site
The best way to master socket.io is by building a real-world application, which is what we will be doing in this chapter. A live score website shows score changes in real time to the user as soon as the administrator updates the scores. We will create a football live score website. Discussing how to build a live score website will help us study socket.io in depth, as it requires socket.io authentication, and optionally, integrating socket.io with Express. Our live score website will provide an admin panel for the administrators to update the score.
In this chapter, we will cover the following topics:
- Accessing cookies in the socket.io middleware
- Discussing HTTP basic authentication
- Integrating socket.io with Express
- Discussing socket.io authentication