mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Handle onConnect
This commit is contained in:
@@ -72,6 +72,10 @@
|
||||
return this.onDisconnect();
|
||||
}
|
||||
|
||||
if (packet.type == 'connect' && packet.endpoint == ''){
|
||||
return this.onConnect();
|
||||
}
|
||||
|
||||
this.socket.onPacket(packet);
|
||||
return this;
|
||||
};
|
||||
@@ -105,6 +109,17 @@
|
||||
return this;
|
||||
};
|
||||
|
||||
/**
|
||||
* Called when transport connects
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Transport.prototype.onConnect = function () {
|
||||
this.socket.onConnect();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears close timeout
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user