错误信息如下:
PHP Notice: Undefined property: PHPSocketIO\Engine\Protocols\Http\Request::$res in /root/web-msg-sender-master/vendor/workerman/phpsocket.io/src/Engine/Transports/Polling.php on line 14
Notice: Undefined property: PHPSocketIO\Engine\Protocols\Http\Request::$res in /root/web-msg-sender-master/vendor/workerman/phpsocket.io/src/Engine/Transports/Polling.php on line 14
exception 'Exception' with message 'empty this->res' in /root/web-msg-sender-master/vendor/workerman/phpsocket.io/src/Engine/Transports/PollingXHR.php:45
Stack trace:
#0 /root/web-msg-sender-master/vendor/workerman/phpsocket.io/src/Engine/Transports/Polling.php(181): PHPSocketIO\Engine\Transports\PollingXHR->doWrite('?????0{"sid":"1...')
#1 /root/web-msg-sender-master/vendor/workerman/phpsocket.io/src/Engine/Transports/Polling.php(176): PHPSocketIO\Engine\Transports\Polling->write('?????0{"sid":"1...')
#2 /root/web-msg-sender-master/vendor/workerman/phpsocket.io/src/Engine/Socket.php(312): PHPSocketIO\Engine\Transports\Polling->send(Array)
#3 : PHPSocketIO\Engine\Socket->flush()
#4 /root/web-msg-sender-master/vendor/workerman/phpsocket.io/src/Event/Emitter.php(91): call_user_func_array(Array, Array)
#5 /root/web-msg-sender-master/vendor/workerman/phpsocket.io/src/Engine/Transports/Polling.php(50): PHPSocketIO\Event\Emitter->emit('drain')
#6 /root/web-msg-sender-master/vendor/workerman/phpsocket.io/src/Engine/Transports/Polling.php(18): PHPSocketIO\Engine\Transports\Polling->onPollRequest(Object(PHPSocketIO\Engine\Protocols\Http\Request), NULL)
#7 /root/web-msg-sender-master/vendor/workerman/phpsocket.io/src/Engine/Transports/PollingXHR.php(28): PHPSocketIO\Engine\Transports\Polling->onRequest(Object(PHPSocketIO\Engine\Protocols\Http\Request))
#8 /root/web-msg-sender-master/vendor/workerman/phpsocket.io/src/Engine/Engine.php(171): PHPSocketIO\Engine\Transports\PollingXHR->onRequest(Object(PHPSocketIO\Engine\Protocols\Http\Request))
#9 /root/web-msg-sender-master/vendor/workerman/phpsocket.io/src/Engine/Engine.php(255): PHPSocketIO\Engine\Engine->handshake('websocket', Object(PHPSocketIO\Engine\Protocols\Http\Request))
#10 : PHPSocketIO\Engine\Engine->dealWebSocketConnect(NULL, true, Object(PHPSocketIO\Engine\Protocols\Http\Request), Object(PHPSocketIO\Engine\Protocols\Http\Response))
#11 /root/web-msg-sender-master/vendor/workerman/phpsocket.io/src/Engine/Engine.php(133): call_user_func(Array, NULL, true, Object(PHPSocketIO\Engine\Protocols\Http\Request), Object(PHPSocketIO\Engine\Protocols\Http\Response))
#12 /root/web-msg-sender-master/vendor/workerman/phpsocket.io/src/Engine/Engine.php(220): PHPSocketIO\Engine\Engine->verify(Object(PHPSocketIO\Engine\Protocols\Http\Request), Object(PHPSocketIO\Engine\Protocols\Http\Response), true, Array)
#13 : PHPSocketIO\Engine\Engine->onWebSocketConnect(Object(Workerman\Connection\TcpConnection), Object(PHPSocketIO\Engine\Protocols\Http\Request), Object(PHPSocketIO\Engine\Protocols\Http\Response))
#14 /root/web-msg-sender-master/vendor/workerman/phpsocket.io/src/Engine/Protocols/WebSocket/RFC6455.php(283): call_user_func_array(Array, Array)
#15 /root/web-msg-sender-master/vendor/workerman/phpsocket.io/src/Engine/Protocols/WebSocket.php(84): PHPSocketIO\Engine\Protocols\WebSocket\RFC6455::dealHandshake(Object(Workerman\Connection\TcpConnection), Object(PHPSocketIO\Engine\Protocols\Http\Request), Object(PHPSocketIO\Engine\Protocols\Http\Response))
#16 /root/web-msg-sender-master/vendor/workerman/phpsocket.io/src/Engine/Protocols/SocketIO.php(38): PHPSocketIO\Engine\Protocols\WebSocket::dealHandshake(Object(Workerman\Connection\TcpConnection), Object(PHPSocketIO\Engine\Protocols\Http\Request), Object(PHPSocketIO\Engine\Protocols\Http\Response))
#17 /root/web-msg-sender-master/vendor/workerman/workerman/Connection/TcpConnection.php(383): PHPSocketIO\Engine\Protocols\SocketIO::input('GET /socket.io/...', Object(Workerman\Connection\TcpConnection))
#18 : Workerman\Connection\TcpConnection->baseRead(Resource id #62)
#19 /root/web-msg-sender-master/vendor/workerman/workerman/Events/Select.php(250): call_user_func_array(Array, Array)
#20 /root/web-msg-sender-master/vendor/workerman/workerman/Worker.php(1464): Workerman\Events\Select->loop()
#21 /root/web-msg-sender-master/vendor/workerman/workerman/Worker.php(898): Workerman\Worker->run()
#22 /root/web-msg-sender-master/vendor/workerman/workerman/Worker.php(864): Workerman\Worker::forkOneWorker(Object(Workerman\Worker))
#23 /root/web-msg-sender-master/vendor/workerman/workerman/Worker.php(422): Workerman\Worker::forkWorkers()
#24 /root/web-msg-sender-master/start.php(109): Workerman\Worker::runAll()
可能是phpsocket.io不兼容你的cpp客户端。