WebSocket
struct WebSocket {...}
Overview
Defines the WebSocket client struct.
Since: 11
Related module: netstack
Header file: net_websocket_type.h
Summary
Member Variables
| Name | Description |
|---|---|
| WebSocket_OnOpenCallback onOpen | Pointer to the callback invoked when the WebSocket client receives a connection message. |
| WebSocket_OnMessageCallback onMessage | Pointer to the callback invoked when the WebSocket client receives a message. |
| WebSocket_OnErrorCallback onError | Pointer to the callback invoked when the WebSocket client receives an error message. |
| WebSocket_OnCloseCallback onClose | Pointer to the callback invoked when the WebSocket client receives a close message. |
| WebSocket_RequestOptions requestOptions | Options of the connection request. |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 capi-netconnection-netconn-connectionproperties
openharmony 鸿蒙 errorcode-net-mdns
openharmony 鸿蒙 js-apis-net-ethernet-sys
openharmony 鸿蒙 errorcode-net-http
openharmony 鸿蒙 capi-netstack-http-proxy
openharmony 鸿蒙 js-apis-system-fetch
openharmony 鸿蒙 errorcode-kernel
openharmony 鸿蒙 capi-netstack-netstack-certblob