File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ composer require "jianyan74/yii2-websocket"
3232
3333 ```
3434// webSocket
35- 'web-socket ' => [
35+ 'websocket ' => [
3636 'class' => 'jianyan\websocket\WebSocketController',
3737 'server' => 'jianyan\websocket\WebSocketServer',
3838 'host' => '0.0.0.0',// 监听地址
@@ -52,11 +52,11 @@ composer require "jianyan74/yii2-websocket"
5252
5353 ```
5454 # 启动
55- php ./yii web-socket /start
55+ php ./yii websocket /start
5656 # 停止
57- php ./yii web-socket /stop
57+ php ./yii websocket /stop
5858 # 重启
59- php ./yii web-socket /restart
59+ php ./yii websocket /restart
6060 ```
6161
6262### 测试
Original file line number Diff line number Diff line change 66use yii \helpers \FileHelper ;
77
88/**
9- * 启动 php ./yii web-socket /start
10- * 停止 php ./yii web-socket /stop
11- * 重启 php ./yii web-socket /restart
9+ * 启动 php ./yii websocket /start
10+ * 停止 php ./yii websocket /stop
11+ * 重启 php ./yii websocket /restart
1212 * Class WebSocketController
1313 * @package jianyan\websocket
1414 */
You can’t perform that action at this time.
0 commit comments