We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

WebSocket

Phone12+PC/2in113+Tablet12+TV19+Wearable18+
Collapse
Word wrap
Dark theme
Copy code
  1. struct WebSocket {...}

Overview

Defines the WebSocket client struct.

Since: 11

Related module: netstack

Header file: net_websocket_type.h

Summary

Member Variables

Expand
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.
Search in References
Enter a keyword.