请问大大, 这个问题是正常吗? "Fatal error: Call to a member function close() on null in /home/msg/vendor/workerman/phpsocket.io/src/Engine/Transports/WebSocket.php on line 46"
用的是web-msg-sender消息推送框架
这个问题最近又出现了, 而且一旦出现就是频繁出现,已经换了最新版本的web-msg-sender, 具体错误表现为:Fatal error: Call to a member function close() on a non-object in /home/workerman/vendor/workerman/phpsocket.io/src/Engine/Transports/WebSocket.php on line 46
更新下web-msg-sender,做了是否为null的判断
这个问题最近又出现了, 而且一旦出现就是频繁出现,已经换了最新版本的web-msg-sender, 具体错误表现为:Fatal error: Call to a member function close() on a non-object in /home/workerman/vendor/workerman/phpsocket.io/src/Engine/Transports/WebSocket.php on line 46
你的代码不是最新的
https://github.com/walkor/web-msg-sender/blob/master/vendor/workerman/phpsocket.io/src/Engine/Transports/WebSocket.php#L46