Comparing version 1.0.2 to 1.0.3
var Promise = require('bluebird') | ||
, redis = require('reeve'); | ||
module.exports = function(channel, data, user) { | ||
redis.connection.publish('channel:' + channel, JSON.stringify({ data: data, user: user })); | ||
module.exports = function(channel, data) { | ||
redis.connection.publish('channel:' + channel, JSON.stringify(data)); | ||
}; |
@@ -23,5 +23,3 @@ var redis = require('reeve') | ||
message = JSON.parse(message); | ||
that.emit('message', message.data); | ||
that.emit('data', JSON.parse(message)); | ||
}); | ||
@@ -28,0 +26,0 @@ }; |
{ | ||
"name": "bandicoot", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Background message broadcasting", | ||
@@ -5,0 +5,0 @@ "main": "node index", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2376
50