Skip to main content

Module net_websocket

Module net_websocket 

Source
Available on crate feature api-11 only.
Expand description

C interface for the WebSocket client module of NetworkKit netstack.

Functions§

OH_WebSocketClient_AddHeader
Adds the header information to the client request.
OH_WebSocketClient_Close
Closes a webSocket connection.
OH_WebSocketClient_Connect
Connects the client to the server.
OH_WebSocketClient_Constructor
Constructor of websocket.
OH_WebSocketClient_Destroy
Releases the context and resources of the websocket connection.
OH_WebSocketClient_Send
Sends data from the client to the server.