Browse Source

Update README.md

walkor 10 năm trước cách đây
mục cha
commit
950329be57
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -123,7 +123,7 @@ $tcp_worker->onMessage = function($connection, $data)
 };
 
 // Emitted when new connection come
-$tcp_worker->onClose($connection)
+$tcp_worker->onClose = function($connection)
 {
     echo "Connection closed\n";
 };