Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing disconnect reason to MqttClientStatus.DisconnectAsync #1614

Open
Sibusten opened this issue Dec 6, 2022 · 0 comments
Open
Labels
feature-request New feature or request

Comments

@Sibusten
Copy link

Sibusten commented Dec 6, 2022

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

@Sibusten Sibusten added the feature-request New feature or request label Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant