pub fn ws_connect(url: &str) -> u32Expand description
Open a WebSocket connection to url (e.g. "ws://example.com/chat").
Returns a connection handle (> 0) on success, or 0 on error.
The connection is established asynchronously; poll ws_ready_state until
it returns WS_OPEN before sending frames.