pub async fn perform_handshake_async<T: AsyncRecvFrame + AsyncSendFrame + Sync + Send + Unpin + 'static, A: AuthConfig>(
stream: T,
protocol: Topic,
opts: ConnectOptions,
auth: A,
peer: PeerData,
) -> Result<Connection<T>, Error>Expand description
Takes a freshly constructed connection, available as frames, and performs the client side of a normal handshake to select the specified protocol, returning a new low-level connection if the handshake completes successfully.