Create HTTP requests from node and process async events using Rx. This is a barebones wrapper for the builtin module, http.
TODO: Migrate to request after issues with Node 0.12 have been resolved.
var rxGet = require('rx-http-client').getJSON;
var noop = function () {};
rxGet('http://ip.jsontest.com/')
.doAction(function doesAction(json) {
console.log('data received!');
console.log(json);
})
.subscribe(noop, function onError(err) {console.error(err), noop});