Repository navigation
Websocket: add WS_Client - #5320
Merged
Merged
Conversation
gpotter2
commented
Nov 29, 2026
Member
- add a WS_Client
- support upgrading a HTTP_Client (h2C / http2)
…ades WS_Client is an Automaton that performs the WebSocket opening handshake over HTTP_Client and handles ping/pong/close control frames on its own, usable directly or through the wslink supersocket. Close frame payloads are dissected as WebSocketClose (RFC6455 sect 7.4.1). HTTP_Client gains upgrade() to switch an established connection to WebSocket or h2c after a 101 response (used automatically by request()); WebSocket/H2Frame http_upgrade() is renamed http_upgrade_request() and gained a client-side http_upgrade_response() validator. AI-Assisted: yes (GitHub Copilot, GLM-5.2)
_CLAIMSClaimSet now logs a warning when encountering compressed claims (sect 2.2.18.4) instead of silently mis-parsing them. PAC_DEVICE_CLAIMS _INFO (sect 2.13) is added; it is not yet registered in _PACTYPES. A misleading 'NDR PACKETS' comment is corrected to 'PAC_DEVICE_INFO'. AI-Assisted: yes (GitHub Copilot, GLM-5.2)
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5320 +/- ##
==========================================
- Coverage 81.19% 81.10% -0.09%
==========================================
Files 376 376
Lines 99209 99386 +177
==========================================
+ Hits 80550 80607 +57
- Misses 18659 18779 +120
🚀 New features to boost your workflow:
|
AI-Assisted: no
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.