-
-
Notifications
You must be signed in to change notification settings - Fork 94
feat: WebSocket upgrade support #271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
2f87a36 to
6d339ae
Compare
|
Note: Tests are passed, but there is no test for the WebSocket upgrade case. I need to write a test 😋 |
6d339ae to
40610cc
Compare
56a4ec0 to
83ee333
Compare
|
ready for review 😋 |
| abortController, | ||
| ); | ||
|
|
||
| return { request, respondWith, streamRid }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: This is the only purpose this file exists for.
We need streamRid for protocol upgrades, but Deno hasn't exposed it at all.
2184058 to
b9f26a5
Compare
b9f26a5 to
5d8be90
Compare
|
🎉 This PR is included in version 1.37.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
What kind of change does this PR introduce?
Feature
Description
This PR is to make it possible for the (user/main) worker to upgrade incoming requests to the WebSocket protocol.
Breaking changes
EdgeRuntime.applyConnectionWatcheris replaced byEdgeRuntime.applySupabaseTagThis change is a result of the need to track multiple pieces of data.