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

feat(ts-client): Start stream after subscribe #2188

Merged
merged 3 commits into from
Dec 19, 2024

Conversation

msfstef
Copy link
Contributor

@msfstef msfstef commented Dec 19, 2024

Addresses part of #1997

Had to change some tests around - obviously this is not a full move towards the desired behaviour, e.g. we might even want for the stream to stop when it has no subscribers, but I think this provides some beneficial properties to the stream (e.g. if subscribing to it after async gap no messages lost)

If we think this just complicates the client and that if we want to address the issue we should do it in one comprehensive go, I'm happy to close this as well

Copy link

netlify bot commented Dec 19, 2024

Deploy Preview for electric-next ready!

Name Link
🔨 Latest commit 50ccfe7
🔍 Latest deploy log https://app.netlify.com/sites/electric-next/deploys/6764061287615a00089fc7bd
😎 Deploy Preview https://deploy-preview-2188--electric-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@KyleAMathews KyleAMathews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Incremental changes ftw

@msfstef msfstef merged commit 1c28aee into main Dec 19, 2024
33 checks passed
@msfstef msfstef deleted the msfstef/start-stream-after-subscribe branch December 19, 2024 14: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