socket.io-redis
Advanced tools
Comparing version 5.0.0 to 5.0.1
5.0.1 / 2017-05-13 | ||
=================== | ||
* [fix] Fix broken protocol in 5.0.0 (#221) | ||
5.0.0 / 2017-05-11 | ||
@@ -3,0 +8,0 @@ =================== |
@@ -143,3 +143,3 @@ | ||
var room = channel.substring(this.channel.length); | ||
var room = channel.slice(this.channel.length, -1); | ||
if (room !== '' && !this.rooms.hasOwnProperty(room)) { | ||
@@ -408,7 +408,8 @@ return debug('ignore unknown room %s', room); | ||
var msg = msgpack.encode([uid, packet, opts]); | ||
var channel = this.channel; | ||
if (opts.rooms && opts.rooms.length === 1) { | ||
pub.publish(this.channel + opts.rooms[0], msg); | ||
} else { | ||
pub.publish(this.channel, msg); | ||
channel += opts.rooms[0] + '#'; | ||
} | ||
debug('publishing message to channel %s', channel); | ||
pub.publish(channel, msg); | ||
} | ||
@@ -415,0 +416,0 @@ Adapter.prototype.broadcast.call(this, packet, opts); |
{ | ||
"name": "socket.io-redis", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
31012
587