Handle onConnect

This commit is contained in:
Arnout Kazemier
2011-06-15 21:49:46 +02:00
parent 842b30a735
commit f84c4d51b3

View File

@@ -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
*