Async WebServerDAT

It would be great if there would be a way of sending a response via the WebServerDAT in an async manner. Right now we have to return the ResponseDict directly in the callback.
I could magine a behaviour to the newly introduced save object, in where we get a Response object with an ID or similiar, and keep the connection open until we call op("webserver1").sendResponse(ResponseObject).
Even better would be if we could get an optional parameter like op("webserver1").sendResponse(ResponseObject, closeConnection = True). which would even allow us to stream data until we close the connection.

This could for example be used with the mentioned saveObject from TOPs so we can return the saved data without potentialy dropping frames.

1 Like

Hi @plusplusone,

thank you for the suggestion, have added it as an RFE for consideration.

cheers
Markus