|
ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
|
Zero-heap outbound WebSocket client, RFC 6455 (PC_ENABLE_WS_CLIENT). More...
Go to the source code of this file.
Zero-heap outbound WebSocket client, RFC 6455 (PC_ENABLE_WS_CLIENT).
Connects to a remote WebSocket endpoint (ws://, or wss:// over client-side mbedTLS) and exchanges text/binary messages - the device as a WebSocket client to a cloud dashboard or control plane. Split, like the other services, into a pure host-testable codec and an ESP32-only transport:
Client frames are always masked (RFC 6455 ยง5.3); server frames are not. Only unfragmented messages that fit PC_WS_CLIENT_BUF_SIZE are delivered.
Definition in file ws_client.h.