Parcourir la source

update readme

walkor il y a 10 ans
Parent
commit
b9e48dd528
1 fichiers modifiés avec 2 ajouts et 6 suppressions
  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)