Skip to content

Commit

Permalink
[api] add a reconnect event so we know when reconnect is about to fire
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrugzz committed Sep 16, 2013
1 parent ad255aa commit b133b74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/godot/net/client.js
Expand Up @@ -181,6 +181,10 @@ Client.prototype.connect = function (port, host, callback) {
return self.emit('error', err);
}
//
// So we can listen on when reconnect events are about to fire
//
self.emit('reconnect');
//
// Attempt a CONNECT!
//
return connect();
Expand Down

0 comments on commit b133b74

Please sign in to comment.