Add 'connecting' event emit on each connection attempt.

This commit is contained in:
Daniel Beardsley
2010-12-26 00:57:53 -08:00
parent 69991be5cc
commit 24358ae3f0

View File

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