Workerman的Worker做服务端,
现在想利用TcpConnection做客户端来连接Worker服务器。
require_once './Autoloader.php';
$conn = new \Workerman\Connection\AsyncTcpConnection("Websocket://localhost:8081");
$conn->connect();
php start.php
报:PHP Fatal error: Call to a member function add() on null in /opt/webpopled/WebsocketServer/Connection/AsyncTcpConnection.php on line 86
手册有
http://doc.workerman.net/appendices/about-ws.html
我试试。谢谢
不客气