Skip to content

Conversation

@glmfe
Copy link
Collaborator

@glmfe glmfe commented Sep 25, 2025

Description

Update Websocket Echo Server, "wss://echo.websocket.events" is no longer available.

Related

Testing


Checklist

Before submitting a Pull Request, please ensure the following:

  • 🚨 This PR does not introduce breaking changes.
  • All CI checks (GH Actions) pass.
  • Documentation is updated as needed.
  • Tests are updated or added as necessary.
  • Code is well-commented, especially in complex areas.
  • Git history is clean — commits are squashed to the minimum necessary.

Note

Switch examples to WSS and add TLS configuration and certificate handling for the Linux websocket client.

  • Examples (Linux/Target):
    • Switch default endpoint from ws://echo.websocket.events to wss://echo.websocket.org in README.md, example logs, and sdkconfig.*.
  • Config (Kconfig):
    • Add TLS options: WS_OVER_TLS_SERVER_AUTH (default on), WS_OVER_TLS_MUTUAL_AUTH, and WS_OVER_TLS_SKIP_COMMON_NAME_CHECK.
    • Update WEBSOCKET_URI default to WSS.
  • Code (websocket_linux.c):
    • Integrate TLS support: include esp_crt_bundle.h, set crt_bundle_attach for server auth, support mutual auth via client cert/key, and optional CN check skip.
    • Minor log/event sequence reflected in example output (e.g., WEBSOCKET_EVENT_BEGIN).

Written by Cursor Bugbot for commit 7c63877. This will update automatically on new commits. Configure here.

@glmfe glmfe force-pushed the fix/update-ws-echo-server branch from f72c34f to 6fa6d08 Compare September 25, 2025 15:10
@glmfe glmfe self-assigned this Sep 25, 2025
@glmfe glmfe force-pushed the fix/update-ws-echo-server branch 2 times, most recently from e0f3760 to d3afbc0 Compare September 26, 2025 18:30
@glmfe glmfe force-pushed the fix/update-ws-echo-server branch from d3afbc0 to 128d0ab Compare September 26, 2025 18:41
@glmfe glmfe merged commit 18faeb3 into espressif:master Oct 1, 2025
80 of 82 checks passed
gabsuren pushed a commit to gabsuren/esp-protocols-1 that referenced this pull request Nov 13, 2025
1.6.0
Features
- add WEBSOCKET_EVENT_HEADER_RECEIVED (espressif#827) (18f0d02, espressif#715)
- enhance example with docs, pytest setup, and standalone test server     - Add comprehensive README with TOC and quick start     - Add pytest setup and certificate generation scripts     - Add standalone WebSocket test server with TLS support     - Add troubleshooting and multiple testing approaches (cad527d)
- Add websocket HTTP redirect (ce1560a)
Bug Fixes
- remove redundant timeout check in client task loop (1e83bee)
- fix PING timing - enable periodic PING during active traffic (7f42432)
- Update linux build docs on required libs (e52a575)
- clean up component dependencies - Remove unused 'json', 'nvs_flash', 'esp_stubs', dependency from Linux build configuration - Add cJSON dependency to target example's idf_component.yml (d665e6f)
- fix relying on asprintf() to NULL strp on failure (54eb002)
- Update Remaining Websocket Echo Server (espressif#893) (18faeb3)
- avoid long stopping time when waiting to auto-reconnect (2432e41)
- Update Websocket Echo Server (94bd5b0)
Updated
- ci(common): Update test component dir for IDFv6.0 (18418c8)
@gabsuren gabsuren mentioned this pull request Nov 13, 2025
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants