Permalink
Browse files

[api] add a reconnect event so we know when reconnect is about to fire

  • Loading branch information...
jcrugzz committed Sep 16, 2013
1 parent ad255aa commit b133b747e7709de0e311ab10343679178436d700
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/godot/net/client.js
@@ -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();

0 comments on commit b133b74

Please sign in to comment.