diff --git a/lib/godot/net/client.js b/lib/godot/net/client.js
index <HASH>..<HASH> 100644
--- a/lib/godot/net/client.js
+++ b/lib/godot/net/client.js
@@ -143,6 +143,7 @@ Client.prototype.write = function (data) {
 //
 Client.prototype.produce = function (data) {
   var self = this;
+
   //
   // Add defaults to each object where a value does not already exist
   //
@@ -183,6 +184,11 @@ Client.prototype.connect = function (port, host, callback) {
     host = null;
   }
 
+  if (!callback && typeof port === 'function') {
+    callback = port;
+    port = null
+  }
+
   Array.prototype.slice.call(arguments).forEach(function (arg) {
     switch (typeof arg) {
       case 'number':   port = arg; break;
[fix] properly handle a single callback as an argument to the connect function