Ver código fonte

update readme

walkor 10 anos atrás
pai
commit
b9e48dd528
1 arquivos alterados com 2 adições e 6 exclusões
  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)