diff --git a/examples/client.js b/examples/client.js
index <HASH>..<HASH> 100644
--- a/examples/client.js
+++ b/examples/client.js
@@ -2,7 +2,9 @@
 
 const soupbintcp = require('../');
 
-const client = soupbintcp.createClient(4000, 'localhost', () => {
+const client = soupbintcp.createClient(4000, 'localhost');
+
+client.on('connect', () => {
   client.login({
     username: 'foo',
     password: 'bar',
diff --git a/lib/Client.js b/lib/Client.js
index <HASH>..<HASH> 100644
--- a/lib/Client.js
+++ b/lib/Client.js
@@ -48,7 +48,12 @@ class Client extends EventEmitter {
       this.emit('end');
     });
 
-    socket.connect(port, host, cb);
+    socket.connect(port, host, () => {
+      this.emit('connect');
+
+      if (cb)
+        cb();
+    });
   }
 
   login(payload, cb) {
Add 'connect' event for client