Skip to main content

ws_send_text

Function ws_send_text 

Source
pub fn ws_send_text(id: u32, text: &str) -> i32
Expand description

Send a UTF-8 text frame on the given connection.

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