I am recently learning rxjs. I am trying to obtain data over a http stream (Asynchronously, without closing the stream after a single response is received. I want multiple response from a single http request over time). So the UI code for rxjs would be something like this,
this.http.get('https://...').subscribe(value => {
...
});
However i dont know how to send data asynchronously through http response from backend. The http response waits for the entire json to be completed and it ends up sending the entire data in a single response. I don't want that. How to code the backend to send a json data as soon as it is available instead of waiting for all data to be obtained and sending as [{..},{..},{..}....]?