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: add stream support #42

Merged
merged 14 commits into from
Mar 15, 2024
Merged

feat: add stream support #42

merged 14 commits into from
Mar 15, 2024

Conversation

zhukaihan
Copy link
Collaborator

Summary

Uses the stream flag API from experiment-core to produce SDK that receives flag configs updates from server. It should replace constant polling. Currently it is disabled by default and falls back to polling if any fatal error encountered, server 501 or retry reached maximum. It retries every 15 seconds.

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?: no

packages/node/package.json Outdated Show resolved Hide resolved
Copy link
Collaborator

@bgiori bgiori left a comment

Choose a reason for hiding this comment

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

looks great!

packages/node/src/local/streamer.ts Outdated Show resolved Hide resolved
packages/node/src/types/eventsource.d.ts Show resolved Hide resolved
@zhukaihan zhukaihan requested a review from bgiori March 7, 2024 18:18
@bgiori
Copy link
Collaborator

bgiori commented Mar 14, 2024

Just make the config changes and you're good to go

@zhukaihan zhukaihan merged commit 70b1f94 into main Mar 15, 2024
8 checks passed
@zhukaihan zhukaihan deleted the add-stream-support branch March 15, 2024 16:25
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