Skip to content

Commit 4452401

Browse files
author
jianyan74
committed
修改命名
1 parent 3e5dfb1 commit 4452401

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
### 测试

WebSocketController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
use 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
*/

0 commit comments

Comments
 (0)