mirror of
https://github.com/espressif/esp-protocols.git
synced 2026-01-25 08:32:22 +01:00
4.3.3~1 Bug Fixes - Remove lws support for IDF>=v6.0 (b70cc3fc) - Update websocket Echo server (#894) (318e41b3) - Adds missing license info (7ea6879a) Updated - chore(lws): fixed formatting (91e7e9fa)
ESP32 libwebsockets Port
This is a lightweight port of the libwebsockets library designed to run on the ESP32. It provides WebSocket client functionalities.
Supported Options
The ESP-IDF port of libwebsockets supports a set of common WebSocket configurations for clients. These options can be configured through a structure passed to the lws_create_context() function.
Key features supported:
- WebSocket with optional SSL/TLS
- HTTP/1.1 client support
Memory Footprint Considerations
The memory consumption primarily depends on the number of concurrent connections and the selected options for WebSocket frames, protocol handling, and SSL/TLS features. It consumes approximately 300 kB of program memory.
Client:
The values bellow were extracted from the client example (./examples/client/main/lws-client.c)
- Initial Memory Usage: ~8 kB of heap on startup
- Connected Memory Usage Over TLS: ~35.3 kB of heap after connected to a server
- Connected Memory Usage Over TCP (Plain): ~4.5 kB of heap after connected to a server