Skip to main content

ws_send_binary

Function ws_send_binary 

Source
pub fn ws_send_binary(id: u32, data: &[u8]) -> i32
Expand description

Send a binary frame on the given connection.

Returns 0 on success, -1 if the connection is unknown or closed.