In my application, the user can launch a crawl action from the interface who will be executed in a thread on the server-side. This crawl is performed in a while
loop and will send some information (for the moment, as a print in the console).
What I want to do is to send this information displayed in the console to the view. This diagram sum up the process
View Server
| |
| Call the async function with ajax | crawl Thread
|---------------------------------------->|------------>|
| | |
| | |
| send back information | information |
|<----------------------------------------|<------------|
| | ...
|------| |
| | refresh view ...
| |
|<------
...
Is there a way to do this ? I have no idea how to do this (signals ? websockets ?)
Thanks !