Skip to content

Commit

Permalink
Add getClient docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Aug 2, 2021
1 parent 5fae233 commit 541311f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/en/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,11 @@ Generate ClientId
```php
Simps\MQTT\Client->genClientID(string $prefix = 'Simps_')
```

## getClient()

Get an instance of `Swoole\Coroutine\Client` or `\Swoole\Client`

```php
Simps\MQTT\Client->getClient()
```
8 changes: 8 additions & 0 deletions docs/zh-cn/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,11 @@ Simps\MQTT\Client->buildMessageId()
```php
Simps\MQTT\Client->genClientID(string $prefix = 'Simps_')
```

## getClient()

获取 `Swoole\Coroutine\Client``\Swoole\Client` 的实例

```php
Simps\MQTT\Client->getClient()
```

0 comments on commit 541311f

Please sign in to comment.