Finally got socket.io working