pub async fn greeting<'ws>(
timeout_duration: Duration,
_sender: &'ws mut WebSocketSender,
receiver: &'ws mut WebSocketReceiver,
handler: HandshakeFn,
) -> Result<()>
Expand description
Simple greeting handshake where supplied closure receives
the first message from the client and should return
Ok(())
to proceed or Error
to abort the connection.