Skip to content

Conversation

@jgoux
Copy link
Contributor

@jgoux jgoux commented Sep 25, 2024

In this PR I added:

  • Authentication for using the live sharing feature
  • Usage of a connectionId to track each connection against a databaseId individually, to avoid bugs were a client would disconnect and another one would reconnect quickly after that after the same database. PGlite could still be processing a query for the old connection and send the result back to the new one which breaks pg wire protocol.
  • Refactor the code in browser-proxy so it's more digestible
  • Use a proper Terminate message to indicate PGlite that the client has disconnected

@vercel
Copy link

vercel bot commented Sep 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
postgres-new ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 1, 2024 8:15am

@jgoux jgoux marked this pull request as ready for review September 30, 2024 11:26
@jgoux jgoux requested a review from gregnr September 30, 2024 11:26
@jgoux jgoux merged commit c47a434 into feat/db-sharing Oct 1, 2024
1 check passed
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.

3 participants