Skip to content

Commit e574ba4

Browse files
committed
Fixed; added echo connect packet for all namespaces connections.
1 parent 6583e9e commit e574ba4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/namespace.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@ SocketNamespace.prototype.handlePacket = function (sessid, packet) {
213213
switch (packet.type) {
214214
case 'connect':
215215
this.store.join(sessid, this.name, function () {
216-
self.emit('connection', self.sockets[sessid]);
216+
// packet echo
217+
socket.packet({ type: 'connect' });
218+
self.emit('connection', socket);
217219
});
218220
break;
219221

0 commit comments

Comments
 (0)