public function actionRestart() { $WebsocketServer = new WebsocketServer((array) Yii::app()->websocket); $WebsocketServer->restart(); }