Skip to content
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

Wire protocol over WebSockets #80

Closed
chasers opened this issue May 2, 2023 · 0 comments · Fixed by #82
Closed

Wire protocol over WebSockets #80

chasers opened this issue May 2, 2023 · 0 comments · Fixed by #82
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@chasers
Copy link
Contributor

chasers commented May 2, 2023

It should be easy for people to use Supabase with Vercel Postgres.

Adds support for the wire protocol over WebSockets such that the @vercel/postgres client works. See:
https://vercel.com/blog/vercel-storage#vercel-postgres-complex-data-made-easy

@vercel/postgres wraps @neondatabase/serverless which uses WebSockets to transport the wire protocol because some serverless envs like Cloudflare don't give you a TCP connection.

To use @neondatabase/serverless you need a proxy which handles WebSocket connections and turns it into a TCP Postgres connection.

The behavior of the proxy ultimately is here: https://github.com/neondatabase/wsproxy

@chasers chasers added the enhancement New feature or request label May 2, 2023
@chasers chasers added this to the v0.2.0 milestone May 2, 2023
@abc3 abc3 self-assigned this May 3, 2023
@abc3 abc3 linked a pull request May 5, 2023 that will close this issue
@abc3 abc3 closed this as completed in #82 May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants