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

Please add Server-Send-Events on changes to the json data #1610

Open
Alex-Jongman opened this issue Sep 16, 2024 · 2 comments · May be fixed by #1614
Open

Please add Server-Send-Events on changes to the json data #1610

Alex-Jongman opened this issue Sep 16, 2024 · 2 comments · May be fixed by #1614

Comments

@Alex-Jongman
Copy link

Would be nice if the json-server would offer server-send-events when data gets created, modified or deleted.
Front-ends then could use EventSource to get notified and can react on the changes.

@ikeohachidi
Copy link

@Alex-Jongman I had a use for this and created a PR for this here

@Alex-Jongman
Copy link
Author

@ikeohachidi thanks for the info. I tried you PR, unfortunately it didn't fulfill my needs.
But it gave me inspiration to create a fork myself (see here).
Hope that the SSE feature to prevent clients from have to use active polling, to determine changes in the data will make it to the main branch.

@Alex-Jongman Alex-Jongman linked a pull request Oct 15, 2024 that will close this issue
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 a pull request may close this issue.

2 participants