Wednesday, 5 April 2017

Keep two arrays synchronized through RxJs Observables using socket.io

We are building a Webapp using Anguar2 RxJs and Express4 with Socket.Io

The express server is used as an api gateway for the Angular2 App. The backend is event based and puts out a list of objects wich are updated async.

On application startup we would now load the content of the array and then keep watching for object changes. In case of updates change the corresponding object on the client.

We are quite new to RxJs. Is there an elegant solution to this problem using RxJs?



via Coco

No comments:

Post a Comment