Replies: 0 comments 5 replies
-
@devfrey That's awesome! 🎉 I'm indeed currently working on the EventSource documentation here: https://framework-x.clue.engineering/docs/async/streaming/#eventsource EventSource support is somewhat built-in already because it's literally normal HTTP response streaming, but I agree some documentation and additional helpers to ease getting started makes perfect sense. I've also used variations of https://github.com/clue/php-sse-react in a number of projects and plan to integrate this more closely with Framework X in the future. What do you think? |
Beta Was this translation helpful? Give feedback.
-
That sounds great! What if events to be written depend on the request (query string, authorization headers, ...)? |
Beta Was this translation helpful? Give feedback.
-
I would suggest an explaination for what it is for and how it works. In |
Beta Was this translation helpful? Give feedback.
-
Hi,
Since Framework X doesn't yet have an implementation for EventSource / Server-Sent Events, I decided to build an experimental implementation. It's very much possible I haven't covered all use cases, so looking forward to your feedback. I have no idea if this comes close to what you had in mind, but I hope it helps.
Relevant snippet from the example in the readme:
The object-oriented API for constructing events is fairly straight forward:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions