Updated socket.io connect.