其他分享
首页 > 其他分享> > 2021-11-08

2021-11-08

作者:互联网

在swoft-devtool组件中使用php bin/swoft dclient:ws /echo命令连接WebSocket服务器,可以看到如下所示的连接成功消息
在这里插入图片描述

如果要查找已经注册的swoft路由,包括库里面的,可以查找:IP:PORT(HOST)/__devtool/http/routes 然后根据里面来找想要找的路由

http://host/wstest
php swoftcli.phar run -c ws:start -b bin/swoft /var/www/teenmay/teenmay-ws/

标签:11,http,swoft,devtool,ws,2021,teenmay,php,08
来源: https://blog.csdn.net/hu215545/article/details/121208709