public function actionRestart()
 {
     $WebsocketServer = new WebsocketServer(Yii::app()->websocket);
     $WebsocketServer->start();
     $WebsocketServer->stop();
 }
示例#2
0
 public function actionStop()
 {
     $WebsocketServer = new WebsocketServer((array) Yii::app()->websocket);
     $WebsocketServer->stop();
 }