mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Add 'connecting' event emit on each connection attempt.
This commit is contained in:
@@ -59,6 +59,7 @@
|
||||
if (this.transport && !this.connected){
|
||||
if (this.connecting) this.disconnect();
|
||||
this.connecting = true;
|
||||
this.emit('connecting', [this.transport.type]);
|
||||
this.transport.connect();
|
||||
if (this.options.connectTimeout){
|
||||
var self = this;
|
||||
|
||||
Reference in New Issue
Block a user