Angular's httpClient does a complete when the data is in. I suspect your setup is waiting for the complete before it actually reacts. You need to change this around so it acts when the data appears. The being difference here is that its actually possible that there will be new data coming in over your websocket, while http.get is a single operation.
Regards Sander Op dinsdag 11 augustus 2020 om 15:38:23 UTC+2 schreef [email protected]: > Hi, > I'm a new at ngrx term . I'm trying to get websocket data from my back-end > and store it as an entity using ngrx data i tried to change the getAll() > method to get data as websocket but it seems not working cause the method > based as httpclient . > can anyone help me with this ? > Best regards > > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/angular/18d54080-0beb-4e44-a1d5-7a0a5114c243n%40googlegroups.com.
