pub unsafe extern "C" fn OH_WebSocketClient_Destroy(
client: *mut WebSocket,
) -> c_intAvailable on crate feature
api-11 only.Expand description
Releases the context and resources of the websocket connection.
§Arguments
client- Pointer to the websocket client.
§Returns
- 0 if success; non-0 otherwise. For details about error codes, see [
OH_Websocket_ErrCode]. ohos.permission.INTERNET
Required System Capabilities: SystemCapability.Communication.NetStack
Available since API-level: 11
Version: 1.0