Skip to content

Conversation

@nyannyacha
Copy link
Contributor

@nyannyacha nyannyacha commented Feb 18, 2024

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.applyConnectionWatcher is replaced by EdgeRuntime.applySupabaseTag
    This change is a result of the need to track multiple pieces of data.

@nyannyacha
Copy link
Contributor Author

nyannyacha commented Feb 18, 2024

Note: Tests are passed, but there is no test for the WebSocket upgrade case. I need to write a test 😋

@nyannyacha nyannyacha force-pushed the feat-ws-listen branch 2 times, most recently from 56a4ec0 to 83ee333 Compare February 19, 2024 14:13
@nyannyacha nyannyacha marked this pull request as ready for review February 20, 2024 03:02
@nyannyacha nyannyacha enabled auto-merge February 20, 2024 23:08
@nyannyacha
Copy link
Contributor Author

ready for review 😋
cc @andreespirela @laktek

abortController,
);

return { request, respondWith, streamRid };
Copy link
Contributor Author

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.

@nyannyacha nyannyacha disabled auto-merge February 21, 2024 10:40
@nyannyacha nyannyacha requested review from andreespirela and laktek and removed request for andreespirela February 21, 2024 23:44
@nyannyacha nyannyacha merged commit 1399bb2 into supabase:main Feb 27, 2024
@nyannyacha nyannyacha deleted the feat-ws-listen branch February 27, 2024 00:12
@github-actions
Copy link

🎉 This PR is included in version 1.37.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants