make socket.io handshake asynchronous