You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Describe the feature request
MqttServer.DisconnectClientAsync
allows passing anMqttDisconnectReasonCode
as the second argument.However, the
MqttClientStatus
objects obtained fromMqttServer.GetClientsAsync
do not allow passing a disconnect reason to theirDisconnectAsync
method.Which project is your feature request related to?
Describe the solution you'd like
Add an
MqttDisconnectReasonCode
parameter toMqttClientStatus.DisconnectAsync
.Describe alternatives you've considered
Calling
MqttServer.DisconnectClientAsync
with the ID from theMqttClientStatus
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
The text was updated successfully, but these errors were encountered: