mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Removed the join callback, since it's not necessary (TCP based pub/sub guarantees
proper total ordering).
This commit is contained in:
@@ -214,11 +214,14 @@ SocketNamespace.prototype.handlePacket = function (sessid, packet) {
|
||||
|
||||
switch (packet.type) {
|
||||
case 'connect':
|
||||
this.store.join(sessid, this.name, function () {
|
||||
// packet echo
|
||||
socket.packet({ type: 'connect' });
|
||||
self.emit('connection', socket);
|
||||
});
|
||||
this.manager.onJoin(sessid, this.name);
|
||||
this.store.publish('join', sessid, this.name);
|
||||
|
||||
// packet echo
|
||||
socket.packet({ type: 'connect' });
|
||||
|
||||
// emit connection event
|
||||
self.emit('connection', socket);
|
||||
break;
|
||||
|
||||
case 'ack':
|
||||
|
||||
Reference in New Issue
Block a user