This was the broadest and longest chapter in the book, and we covered a lot of concepts. We first learned about Web Sockets and how they can be used in a mobile application. We also learned about Node.js, its installation, how it works, and its package management system (npm). We then went on to code a complete game server using JavaScript by leveraging the socket.io
library.
We integrated another native extension module into our application, even though it does not share the same version number between platforms. We also added a large number of graphical assets into our game and managed to use them in a dynamic manner.
Finally, we went over how to interact with our game server from our mobile application and keep tabs on the other player's actions.
Once all that has been written and done, we now have a working online multiplayer game, and what was learned in this chapter can easily be applied to many other types of online games.
In the next chapter, we will learn how to make our applications...