Skip to content

fix: the WebSocket directives require a GET with version 13 and a valid key, as Pekko's server - #92

Merged
luksow merged 2 commits into
masterfrom
websocket-upgrade-checks
Oct 18, 2026
Merged

luksow merged 2 commits into
masterfrom
websocket-upgrade-checks

Conversation

@luksow

@luksow luksow commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator

The WebSocket directives took any request with Connection: upgrade and Upgrade: websocket as an upgrade. As Pekko's server, they now also require a GET, a Sec-WebSocket-Version listing 13 and a padded base64 Sec-WebSocket-Key of 16 bytes. Ember used to upgrade a POST or a key of the wrong length.

Known remaining gap (documented): a version list such as 8, 13 is an upgrade here, as in Pekko, but Ember's handshake refuses it.


Part of the 0.7.1 stack (audit 2 minor items). Stacked: merge in order #1 → #10; each PR is based on the previous one, so none of them conflicts on docs/migration.md. Every PR: test written first and seen failing, full local verify (Scala 3 + 2.13 tests, JS/Native compile, docs, MiMa against 0.7.0), independent review with its findings fixed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HBTSjzt7V6GBL6i5bqnYea

luksow and others added 2 commits October 18, 2026 19:20
…id key, as Pekko's server

The directives took any request with Connection: upgrade and Upgrade: websocket
as an upgrade. Pekko's server offers only a GET with a Sec-WebSocket-Version
listing 13 and a padded base64 Sec-WebSocket-Key of 16 bytes to the routes;
Ember upgraded a POST or a key of the wrong length, and refused a missing key
or version only after the route had accepted the upgrade.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HBTSjzt7V6GBL6i5bqnYea
… of Ember's 426

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HBTSjzt7V6GBL6i5bqnYea
@luksow
luksow force-pushed the websocket-upgrade-checks branch from 659ed02 to db2fb80 Compare October 18, 2026 19:28
Base automatically changed from rejection-ranking to master October 18, 2026 20:03
@luksow
luksow merged commit a713eef into master Oct 18, 2026
21 checks passed
@luksow
luksow deleted the websocket-upgrade-checks branch October 18, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant