Make sure req and socket.handshake are equivalent