Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ '8.1', '8.2', '8.3', '8.4', '8.5' ]
php-version: [ '8.1', '8.2', '8.3', '8.4' ]
max-parallel: 5
fail-fast: false
steps:
Expand Down
6 changes: 5 additions & 1 deletion docs/en/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,13 @@ Simps\MQTT\Client->recv(): bool|arary|string
Send a heartbeat

```php
Simps\MQTT\Client->ping()
Simps\MQTT\Client->ping(bool $response = true)
```

- `bool $response`

Whether a response is required. If `true`, `recv()` is called once

## buildMessageId()

Generate MessageId
Expand Down
6 changes: 5 additions & 1 deletion docs/en/websocket.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,13 @@ Simps\MQTT\WebSocketClient->recv(): bool|arary|string
Send a heartbeat

```php
Simps\MQTT\WebSocketClient->ping()
Simps\MQTT\WebSocketClient->ping(bool $response = true)
```

- `bool $response`

Whether a response is required. If `true`, `recv()` is called once

## buildMessageId()

Generate MessageId
Expand Down
4 changes: 3 additions & 1 deletion docs/zh-cn/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,11 @@ Simps\MQTT\Client->recv(): bool|arary|string
发送心跳包

```php
Simps\MQTT\Client->ping()
Simps\MQTT\Client->ping(bool $response = true)
```

- 参数`$response` 是否需要回执。如果为`true`,会调用一次`recv()`

## buildMessageId()

生成 MessageId
Expand Down
4 changes: 3 additions & 1 deletion docs/zh-cn/websocket.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,11 @@ Simps\MQTT\WebSocketClient->recv(): bool|arary|string
发送心跳包

```php
Simps\MQTT\WebSocketClient->ping()
Simps\MQTT\WebSocketClient->ping(bool $response = true)
```

- 参数`$response` 是否需要回执。如果为`true`,会调用一次`recv()`

## buildMessageId()

生成 MessageId
Expand Down