We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de198f4 commit 87c743cCopy full SHA for 87c743c
index.js
@@ -97,7 +97,7 @@ function adapter(uri, opts){
97
return debug('ignore different channel');
98
}
99
var args = JSON.parse(msg);
100
- var packet = args[0];
+ var packet = args[1];
101
102
if (packet && packet.nsp === undefined) {
103
packet.nsp = '/';
@@ -128,7 +128,7 @@ function adapter(uri, opts){
128
newPacket.type = packet.type;
129
if (!remote) {
130
var chn = this.prefix + '#' + newPacket.nsp + '#';
131
- var msg = JSON.stringify([newPacket, opts]);
+ var msg = JSON.stringify([uid, newPacket, opts]);
132
if (opts.rooms) {
133
opts.rooms.map( (room) => {
134
var chnRoom = chn + room + '#';
0 commit comments