working socket.io connection