I have an app that I need to make it send http requests and receive response , but I want to make it send all requests that it has at once, is there any app in the NextCloud that behaves is similar way? or does the NextCloud server support such a capabilities?
You can setup a cron job, that will do the request at the next tick.
If you need something more âliveâ you should have a look to the Circles apps: I found a (experimental) way to create an async process by sending a local request to the cloud:
Current webpage (process A) send a request to the local cloud
process B is opened by the request
process B is closing the socket, setting process A free
process A is now free and can stop
process B is still alive and do what ever you need to do.
I donât think that âcron jobâ is suitable since the requests depend on events so I cant predict when to send and when not to, but the code that you have shared sound reasonable enough.
but how can I use it correctly? assume I have in the php script a function called PostRequest(), is this syntax is correct?