用composer创建的gatework项目,然后再composer require workerman/webman,再执行 php start.php start 报错!!!

小七他哥

报错如下:

root@:/yhmweb/chat-template# php start.php start
Workerman[start.php] start in DEBUG mode
---------------------------------------------- WORKERMAN -----------------------------------------------
Workerman version:4.1.0          PHP version:7.4.3           Event-Loop:\Workerman\Events\Select
----------------------------------------------- WORKERS ------------------------------------------------
proto   user            worker                listen                      processes    status           
tcp     root            phpernote_business    none                        4             [OK]            
tcp     root            phpernote_gateway     websocket://0.0.0.0:8052    4             [OK]            
tcp     root            Register              text://0.0.0.0:1238         1             [OK]            
--------------------------------------------------------------------------------------------------------
Press Ctrl+C to stop. Start success.
Waring: Events::onMessage is not callable
Waring: Events::onMessage is not callable
Waring: Events::onMessage is not callable
Waring: Events::onMessage is not callable

而且我之前用 gateworker 写好的项目也发送不了消息了,请大神帮忙看下为什?谢谢。

929 1 0
1个回答

walkor 打赏

截图
参考 这设置下composer.json ,然后执行 composer dumpautoload

  • 小七他哥 2022-09-07

    谢谢大神给与指点,按照你的操作,不报错了,但是不知道咋使用webman了,我最后还是改成了引用 workerman 了,主要是用来聊天的时候上传文件用。

年代过于久远,无法发表回答
×
🔝