Skip to main content

ws_close

Function ws_close 

Source
pub fn ws_close(id: u32) -> i32
Expand description

Initiate a graceful close handshake on id.

Returns 1 if the close was initiated, 0 if the handle is unknown. After calling this function the connection will transition to WS_CLOSED asynchronously. Call ws_remove once the state is WS_CLOSED to free host resources.