Allow passing disconnect reason to MqttClientStatus.DisconnectAsync
- Dominant language
- C#
- Stars
- 5.1k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the feature request
`MqttServer.DisconnectClientAsync` allows passing an `MqttDisconnectReasonCode` as the second argument.
However, the `MqttClientStatus` objects obtained from `MqttServer.GetClientsAsync` do not allow passing a disconnect reason to their `DisconnectAsync` method.
### Which project is your feature request related to?
- Server
### Describe the solution you'd like
Add an `MqttDisconnectReasonCode` parameter to `MqttClientStatus.DisconnectAsync`.
### Describe alternatives you've considered
Calling `MqttServer.DisconnectClientAsync` with the ID from the `MqttClientStatus` object allows using a disconnect reason, but it would be nice to be able to do this directly.
### Additional context
Using MQTTnet v4.1.3.436
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.