In the second part of this French language tutorial you'll learn how to make an online game (MMO) with Phaser, Socket.io and Express.js. This part of the guide includes creating the socket.io server and architecture.
If you don't read French then Google Translate does a decent job and the source is on GitHub anyway, and source code is always universal :)