use support\request;
protected $requst = null;
public function __construct(request $request)
{
$this->request = $request;
}
上面写法会报错
ArgumentCountError: Too few arguments to function app\controller\Login::__construct(), 0 passed in /www/wwwroot/webman/vendor/workerman/webman-framework/src/Container.php on line 30 and exactly 1 expected in /www/wwwroot/webman/app/controller/Login.php:21
socket.io/vendor/workerman/workerman/Protocols/Websocket.php on line 236
```
安卓客户端有使用ping 但是ping没有附加任何参数,也就是没有发{"type":"ping"},每当客户端要主动发ping的时候就会出现在这个错误。