Product with a customer license
The final goal is implementing a SSE PoC using a browser as the client and the IS as the server.
The client-side is almost done (reference: What is Server-Sent Events (SSE) and how to implement it? | by Gökhan Ayrancıoğlu | Delivery Hero Tech Hub | Medium)
The issue is currently regarding the server side. The question is similar to How to respond to http client without completing the flow service., but there is a catch:
- in the meantime the connection is open, HTTP responses output should be sent out right away - i.e. before the service finishes.
Based on the previous attempts, the
pub.flow:setResponse2 (services), or using the
$httpResponse, they all “flush” the response buffer only after the service finishes.