O'Reilly logo

Express.js Blueprints by Ben Augarten, Marc Kuo, Eric Lin, Aidha Shaikh, Fabiano Pereira Soriani, Geoffrey Tisserand, Chiqing Zhang, Kan Zhang

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

Summary

We created an Express app, a Socket.IO server, and a game client that can talk to our server using the socket.io-client library, and receive the push updates from our server. We've also gone through the user creation and word chaining logic so that we can validate new users and words to be chained. In this process, we dived into the world of Promises; hopefully, illustrating their versatility and how they can simplify your code.

In the next chapter, we will introduce how to build a user matching system, and make it a service. You will also learn how to set up periodical tasks with node-cron.

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