Update server.js
Add the left code

Cannot use the latest version of socket.io