pub async fn send_frame( stream: &mut TcpStream, data: &[u8], kind: &FrameKind, ) -> Result<(), ConnectError>
Send a framed message using the active transport kind.