createServer and applied to socket.io - to fix the error