Skip to content

[Fix] Sync stream connection #90

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

Merged
merged 3 commits into from
May 30, 2024
Merged

Conversation

stevensJourney
Copy link
Contributor

Overview

Sync Stream

A recent issue #11 (comment) showed that under certain conditions the sync stream network request would fail in web.

We currently use the fetch_client package to bind to the JS fetch method. This supports streaming for request body and request responses. The streaming of request bodies requires Chromium 105+ based browsers and requires server to use HTTP/2 or HTTP/3. We only require streaming for request responses. This allows us to remove the streamRequests: true param and maintain better compatibility.

Dependency update

This PR also updates sqlite_async.dart to the latest alpha version.

Testing

This was tested in the Supabase todolist app. The sync stream connection was verified by having data sync down to the client in real time.

sync-requests.mov

@stevensJourney stevensJourney marked this pull request as ready for review May 30, 2024 12:13
@stevensJourney stevensJourney merged commit 0e03710 into alpha-release May 30, 2024
3 of 4 checks passed
@stevensJourney stevensJourney deleted the fix/streaming-requests branch May 30, 2024 12:32
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.

2 participants