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

SvelteKit SSE example #3

Open
karimfromjordan opened this issue Feb 20, 2023 · 2 comments · May be fixed by #12
Open

SvelteKit SSE example #3

karimfromjordan opened this issue Feb 20, 2023 · 2 comments · May be fixed by #12

Comments

@karimfromjordan
Copy link
Contributor

karimfromjordan commented Feb 20, 2023

I'm not sure how complex an SSE (Server Sent Events) example should be. But since the actual SSE part on the backend is super simple we could combine it with a toast component to make it more "real world". SSE and websockets are also great to demonstrate custom stores.

  • use a +server.js route to return a ReadableStream response for the SSE connection
  • use a custom store to listen for any incoming messages/events
  • include a minimal but complete toast component to display the messages
@braebo
Copy link
Member

braebo commented Feb 20, 2023

What's SSE?

@karimfromjordan
Copy link
Contributor Author

I'm sorry. I should have spelled it out: Server Sent Events

@karimfromjordan karimfromjordan linked a pull request Apr 26, 2023 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