async fn send_frame( socket: &mut WebSocket, cmd: u8, payload: &[u8], ) -> Result<(), ()>
Send a protocol frame (command byte + payload) over the WebSocket.