roadrunner
roadrunner copied to clipboard
[💡FEATURE REQUEST]: Support SSE as an alternative to websockets
Now that we have websockets as a means to provide (bidirectional) push communication from the server to the browser, it would also be nice to support server-sent events for (unidirectional) push messages.
SSE could potentially use the already existing pub-sub infrastructure of the websockets.
Additional context This was discussed here https://github.com/spiral/roadrunner/discussions/704
Thanks @steffendietz. I'll investigate the possibility of adding this feature.
TODO: investigate with Mercure: https://github.com/spiral/roadrunner-plugins/issues/6
We've implemented the bidirectional communication via centrifugo (browser <-> RR <-> PHP): https://github.com/roadrunner-php/centrifugo Unfortunately, a separate SSE plugin is not planned. Thanks for the FR 👍🏻
SSE feature would be fantastic! (Considering that the main RoadRunner competitor, FrankenPHP, has one.)
Hey @maximal 👋 That's cool, that FrankenPHP supports this 😃 I'm not against this feature, would be happy to review the PR 😃 Nowadays, RR supports HTTP response streaming as well as HTTP 103 early hints code.
@rustatian, okay, I’ll investigate into this.