using httpClient for real time data streaming
Hello everyone.
we are currently faccing a dead end with some javscript call (in js and Workflow).
our use case is the following :
we need to make an httpcall to a outside server to get some data.
the server is currently sending data on a stream that is not closed as it will keep sending data if new events happen.
If we are making a call with curl (outside adobe) the flow will be the following
curl call
stream open
server send data
stream stay open
server send somr keep alive stream to be sure the stream stay open
(if new data , server send the new data)
We cannot make the call with the regular httpClientRequest as it generate an error as soon as it get the data.
we cannot make a curl call in the workflow eitheir as the task stay "stuck" on the curl call, so we got no way to read the stream. (and we have to kill the workflow => no data in that case)
Has anyone ever get that requirement and any idea on how to do it?
Thank you