d7fa24bc20
feat(websocket): add events for begin/end thread
...
Add events to signal the start and end of the
websocket thread handler, only once each per client.
2024-08-16 14:45:54 -05:00
906e447193
Merge pull request #573 from huming2207/feature/ws-transport-handle
...
feat(websocket): allow using external TCP transport handle (IDFGH-12825)
2024-07-12 16:50:33 +04:00
e6f9fe2385
Merge pull request #583 from DCSBL/ws-client-common-name
...
feat(websocket_client): Add option to set and use cert_common_name in Websocket client (IDFGH-12926)
2024-07-10 12:29:52 +04:00
3a6720ded6
feat(websocket): Add option to set and use cert_common_name in Websocket client
2024-07-10 09:19:48 +02:00
bd9f062709
feat(websocket): allow updating reconnect timeout for retry backoffs
2024-07-02 21:07:50 +03:00
83ea2876fc
feat(websocket): allow using external tcp transport handle
2024-06-21 14:47:03 +10:00
39e972544f
feat(websocket): Added new API esp_websocket_client_append_header
2023-10-16 12:27:29 +04:00
fae80e2f3f
feat(websocket): Added new APIs to support fragmented messages transmission
...
Intoduced new APIs`esp_websocket_client_send_text_partial`,
`esp_websocket_client_send_bin_partial`
`esp_websocket_client_send_cont_mgs`
`esp_websocket_client_send_fin`
`esp_websocket_client_send_with_exact_opcode`
2023-10-03 18:43:58 +04:00
b5177cb23a
fix(websocket): esp_websocket_client client allow sending 0 byte packets
2023-06-01 15:32:18 +04:00
d047ff569c
esp_websocket_client:
...
* Error handling improved to show status code from server
* Added new API `esp_websocket_client_set_headers`
* Dispatches 'WEBSOCKET_EVENT_BEFORE_CONNECT' event before tcp connection
2023-02-22 11:41:33 +04:00
1b134486db
websocket: Support HTTP basic authorization
2023-02-09 15:09:40 +08:00
1d6888445d
Add task_name config option
2023-02-08 15:52:03 +01:00
f9b47900f2
websocket: Added new API esp_websocket_client_destroy_on_exit
2023-01-24 22:29:09 +04:00
3330b96b10
websocket: make esp_websocket_client_send_with_opcode
a public API
2022-11-07 16:20:34 +04:00
d56b5d90ea
feat(websocket): allow users to attach CA bundle
...
with esp_transport_ssl_crt_bundle_attach(), it is not necessary to
include a specific certificate. other protocol clients, such as
esp_http_client, do the same.
fixes #48
2022-06-02 12:29:22 +07:00
e55f54b69e
Add methods to allow get/set of websocket client ping interval
2022-04-26 11:06:20 +02:00
b72a9ae710
esp_websocket_client: Expose frame fin flag in websocket event
2022-04-15 17:06:03 +01:00
8ce791e969
websocket: Added configs reconnect_timeout_ms
and network_timeout_ms
...
Closes https://github.com/espressif/esp-idf/issues/8263
* Original commit: espressif/esp-idf@6c26d65203
2022-03-01 12:18:50 +04:00
46bd32d952
websocket: removed deprecated API "esp_websocket_client_send"
...
Closes IDF-1470
* Original commit: espressif/esp-idf@7f6ab93f7e
2022-03-01 12:18:50 +04:00
fbdbd550c0
ws_client: Fix const correctness in the API config structure
...
Merges https://github.com/espressif/esp-idf/pull/7113
* Original commit: espressif/esp-idf@70b1247a47
2022-03-01 12:18:50 +04:00
4a608ec1cd
components: Support bind socket to specified interface in esp_http_client and esp_websocket_client component
...
* Original commit: espressif/esp-idf@bead3599ab
2022-03-01 12:18:50 +04:00
1933367f63
websocket: Add configurable ping interval
...
Merges https://github.com/espressif/esp-idf/pull/6399
Signed-off-by: David Cermak <cermak@espressif.com >
* Original commit: espressif/esp-idf@9ff9137e7a
2022-03-01 12:18:50 +04:00
8a6c320a29
Add options for esp_http_client and esp_websocket_client to support keepalive
...
* Original commit: espressif/esp-idf@b53e46a68e
2022-03-01 12:18:50 +04:00
d1dd6ece38
websocket: support mutual tls for websocket
...
Closes https://github.com/espressif/esp-idf/issues/6059
* Original commit: espressif/esp-idf@5ab774f9d8
2022-03-01 12:18:50 +04:00
d376480766
Whitespace: Automated whitespace fixes (large commit)
...
Apply the pre-commit hook whitespace fixes to all files in the repo.
(Line endings, blank lines at end of file, trailing whitespace)
* Original commit: espressif/esp-idf@66fb5a29bb
2022-03-01 12:18:50 +04:00
e90272c812
Websocket client: avoid deadlock if stop called from event handler
...
* Original commit: espressif/esp-idf@c2bb0762bb
2022-03-01 12:18:50 +04:00
6d12d06605
tcp_transport: Added internal API for underlying socket, used for custom select on connection end for WS
...
Internal tcp_transport functions could now use custom socket operations.
This is used for WebSocket transport, when we typically wait for clean
connection closure, i.e. selecting for read/error with expected errno or
recv size=0 while socket readable (=connection terminated by FIN flag)
* Original commit: espressif/esp-idf@5e9f8b52e7
2022-03-01 12:18:50 +04:00
1455bc0305
ws_client: Added support for close frame, closing connection gracefully
...
* Original commit: espressif/esp-idf@b213f2c6d3
2022-03-01 12:18:50 +04:00
b71c49c277
websocket: add configurable timeout for PONG not received
...
Closes IDF-1744
* Original commit: espressif/esp-idf@0049385850
2022-03-01 12:18:50 +04:00
aec6a75d40
tcp_transport/ws_client: websockets now correctly handle messages longer than buffer
...
transport_ws can now be read multiple times in a row to read frames larger than the buffer.
Added reporting of total payload length and offset to the user in websocket_client.
Added local example test for long messages.
Closes IDF-1083
* Original commit: espressif/esp-idf@ffeda3003c
2022-03-01 12:18:50 +04:00
a6be8e2e3d
websocket: added missing event data
...
user_context was missing from websocket event data, added. Also added the websocket client handle to the event data.
Removed unused event data struct.
Closes: IDF-1271
* Original commit: espressif/esp-idf@7c0e3765ec
2022-03-01 12:18:50 +04:00
a48b0fafe8
Add User-Agent and additional headers to esp_websocket_client
...
Merges https://github.com/espressif/esp-idf/pull/4345
* Original commit: espressif/esp-idf@9200250f51
2022-03-01 12:18:50 +04:00
1fcc001ae8
ws_client: fix handling timeouts by websocket client.
...
tcp-transport component did not support wait forever. this update uses value of -1 to request this state.
websocket client uses timeouts in RTOS ticks. fixed recalculation to ms (including special value of -1) to use correctly tcp-transport component
Closes https://github.com/espressif/esp-idf/issues/4316
* Original commit: espressif/esp-idf@e1f982921a
2022-03-01 12:18:50 +04:00
f55d8391c9
ws_client: fix for not sending ping responses, updated to pass events also for PING and PONG messages, added interfaces to send both binary and text data
...
closes https://github.com/espressif/esp-idf/issues/3982
* Original commit: espressif/esp-idf@abf9345b85
2022-03-01 12:18:50 +04:00
2553d65e64
ws_client: added subprotocol configuration option to websocket client
...
closes https://github.com/espressif/esp-idf/issues/3893
* Original commit: espressif/esp-idf@de6ea396f1
2022-03-01 12:18:50 +04:00
4d644954fe
esp_wifi: wifi support new event mechanism
...
1. WiFi support new event mechanism
2. Update examples to use new event mechanism
* Original commit: espressif/esp-idf@003a9872b7
2022-03-01 12:18:50 +04:00
f3a0586663
esp_websocket_client: Add websocket client component
...
Closes https://github.com/espressif/esp-idf/issues/2829
* Original commit: espressif/esp-idf@2a2d932cfe
2022-03-01 12:18:50 +04:00