LInux 启动GatewayWorker报错

changqianqian
Workerman start in DEBUG mode

Fatal error: Uncaught Exception: class \Protocols\WebSocket not exist in /opt/lampp/htdocs/GatewayWorker/vendor/workerman/workerman/Worker.php:2155
Stack trace:
#0 /opt/lampp/htdocs/GatewayWorker/vendor/workerman/workerman/Worker.php(619): Workerman\Worker->listen()
#1 /opt/lampp/htdocs/GatewayWorker/vendor/workerman/workerman/Worker.php(503): Workerman\Worker::initWorkers()
#2 /opt/lampp/htdocs/GatewayWorker/start.php(37): Workerman\Worker::runAll()
#3 {main}
  thrown in /opt/lampp/htdocs/GatewayWorker/vendor/workerman/workerman/Worker.php on line 2155
#
4887 2 0
2个回答

changqianqian

我发现只要我改YourApp这个文件夹的名字就回报错,这个是怎么回事?我已经在start.php里面也同步修改了啊

  • 暂无评论
phpcreeper

协议名字大小写错了,不是WebSocket,原则是保证协议首字母要么大写,要么全部小写, 即: new Gateway("Websocket://0.0.0.0:7272"); 或者new Gateway("websocket://0.0.0.0:7272");

  • 暂无评论
年代过于久远,无法发表回答
×
🔝