pub fn ws_close(id: u32) -> i32
Initiate a graceful close handshake on id.
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.
1
0
WS_CLOSED
ws_remove