send_frame

Function send_frame 

Source
async fn send_frame(
    socket: &mut WebSocket,
    cmd: u8,
    payload: &[u8],
) -> Result<(), ()>
Expand description

Send a protocol frame (command byte + payload) over the WebSocket.