首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
Swoole\WebSocket\Server::push(): the connected client of connection[1] is not a websocket client
PHP Warning: Swoole\WebSocket\Server::push(): the connected client of connection[1] is not a websocket client. 连接是正常的连接,一直和服务器正常发心跳包的,提示这个信息,查了有好多遇到这种情况的,这个应该怎么处理呢? 有时候重启一下服务器又可以了,查不出哪儿里问题 [attach]235[/attach]
发布于7年前 · 10 次浏览 · 来自
提问
屎
屎蛋
PHP Warning: Swoole\WebSocket\Server::push(): the connected client of connection[1] is not a websocket client. 连接是正常的连接,一直和服务器正常发心跳包的,提示这个信息,查了有好多遇到这种情况的,这个应该怎么处理呢? 有时候重启一下服务器又可以了,查不出哪儿里问题 [attach]235[/attach]
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2019-08-03
小
小丑鱼
还有个问题,通过WebSocket服务器的onRquest方法发https请求进来,然后给指定的fid发信息也提示这个 PHP Warning: Swoole\WebSocket\Server::push(): the connected client of connection[1] is not a websocket client. in 重启之后偶尔是变好用,这个问题到底在哪儿呢?要怎么查呢?
赞
0
回复
2019-08-03
静
静墨寒鱼
正常的心跳包可以通过 $this->server->connection_info() 获取到连接信息 array(10) { ["websocket_status"]=> int(3) ["server_port"]=> int(9502) ["server_fd"]=> int(5) ["socket_type"]=> int(1) ["re
赞
0
回复
2019-08-03
o
okbeng
同一个fid,心跳包可以发,在onRequest回调里面Server::push()就不行
赞
0
回复