Early in Node.js I wrote an HTTP client library called request. It evolved along with Node.js and eventually became very widely depended upon. A lot has changed since 2010 and I've decided to re-think what a simple HTTP client library should look like. This new library, r2, is a completely new approach from request. Rather than being built on top of the Node.js Core HTTP library and shimmed for the browser, r2 is built on top of the browser's Fetch API and shimmed for Node.js. APIs are meant...
The missing Angular WebSocket module for connecting client apps
Angular Websocket is a WebSocket service tailored for AngularJS 1.x applications, exposed primarily through the $websocket factory in the ngWebSocket module. It wraps the native WebSocket API in a way that plays nicely with Angular’s digest cycle, ensuring that UI updates are triggered when messages arrive. The library manages an internal send queue so that messages requested before the socket is open are safely sent once the connection is ready. It offers a set of convenience methods and...