mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Avoid incorrect debug output order.
This commit is contained in:
@@ -172,11 +172,13 @@ Server.prototype.handleRequest = function (req, res) {
|
||||
*/
|
||||
|
||||
Server.prototype.handshake = function (transport, req) {
|
||||
var id = this.id()
|
||||
, socket = new Socket(id, this, new transports[transport](req))
|
||||
, self = this
|
||||
var id = this.id();
|
||||
|
||||
debug('handshaking client "%d"', id);
|
||||
|
||||
var socket = new Socket(id, this, new transports[transport](req))
|
||||
, self = this
|
||||
|
||||
this.clients[id] = socket;
|
||||
this.clientsCount++;
|
||||
this.emit('connection', socket);
|
||||
|
||||
Reference in New Issue
Block a user