Jelajahi Sumber

update readme

walkor 10 tahun lalu
induk
melakukan
b9e48dd528
1 mengubah file dengan 2 tambahan dan 6 penghapusan
  1. 2 6
      README.md

+ 2 - 6
README.md

@@ -27,12 +27,8 @@ $ws_worker->count = 4;
 // Emitted when new connection come
 $ws_worker->onConnect = function($connection)
 {
-    // Emitted when websocket handshake done
-    $connection->onWebSocketConnect = function($connection)
-    {
-        echo "New connection\n";
-    };
-};
+    echo "New connection\n";
+ };
 
 // Emitted when data received
 $ws_worker->onMessage = function($connection, $data)