I want to introduce you to RxHttp — a TypeScript/ReactiveX based HTTP client that excels at consuming streams of consistently typed JSON objects.
I created this simple little library because I wanted to subscribe to ever-changing objects from the back-end in real-time. Most JavaScript HTTP libraries that I could find do not support this behavior. WebSockets works fine for this if your back-end supports it, but mine (Apache CouchDB) does not.
RxHttp also supports basic HTTP request/response.
It’s on NPM: npm install @mkeen/rxhttp
It’s on GitHub: git clone
https://github.com/mkeen/rxhttp