Let's say that I want to perform a long running query in the backend, and I want to inform the UI the percentage of how much it is done, say 10%, 20% and so on. Is it through a sse connection or with something else? So the backend keeps sending the 'value' of how much the query has been done? And which part close the connection, UI atau backend?
Hi there, sorry for late response!
res.end()
when you want to close the connection.Best,
Shubham
Hi Shubham, thank you for your reply
Regards,
Andri
You could use an SSE connection for this yes, and then you could close the connection when value = 100?
Oh I see, yes thank you for your reply