Yii2结合Workerman的websocket

1、安装workerman composer require workerman/workerman 2、启动workerman 创建commands/WorkermanWebSocketController.php文件 创建actionIndex()函数,用来启动,代码如下 public function actionIndex() { if ('start' == $this->send) { try { $this->start($this-...