Fixed server.js socket communication.