js-adapters/ballroom.js in rhoconnect-4.0.0.beta.10 vs js-adapters/ballroom.js in rhoconnect-4.0.0.beta.12

- old
+ new

@@ -4,11 +4,12 @@ EventEmitter = require('events').EventEmitter, registerEE = new EventEmitter(), routes = require('./router'), client_sub = redis.createClient(), client_pub = redis.createClient(), - pub_channel = process.argv[2] + "RedisPUB"; + pub_channel = process.argv[2] + "RedisPUB", + rcHelpers = require('./rhoconnect_helpers'); //define global hash functions to store callbacks, routes rhoconnectCallbacks = {}; registeredRoutes = {}; registeredControllers = {}; @@ -174,15 +175,10 @@ registeredControllers[_c_name]['defaults'].push(hsh); }; var format_options = function(opts){ return JSON.stringify(opts); - // var f_opts = ""; - // for(var propt in opts){ - // f_opts += propt + ":" + opts[propt]; - // } - // return f_opts; }; function guid() { return (((1+Math.random())*0x100000000)|0).toString(16).substring(1); } @@ -211,6 +207,9 @@ exports.get = get; exports.put = put; exports.del = del; exports.post = post; exports.defaults = defaults; -exports.exitNodejs = exitNodejs; +exports.exitNodejs = exitNodejs; +exports.stashResult = rcHelpers.stashResult; +exports.source = rcHelpers.source; +module.exports.Store = rcHelpers.Store; \ No newline at end of file