I am using client side to send a post request to node js server to perform a long request. During the process, I want the server side can let the client side know how much work is already done and which step it is currently in. So I am wondering if there is a way for the server side to constantly sending events where the client side can receive. Something that can be received by $(document).on(). But It doesn't have to be limited in this way though.
It seems to be $.post only takes data from server side once. So how can I be able to continuously receive server side data after posting?