You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
+server.js
route to return aReadableStream
response for the SSE connectionThe text was updated successfully, but these errors were encountered: