Tricky hax so we can have a meaningful socket.handshake after juggling the request object between authorize and connection phase