Client disconnection occurs on debugging the application
See original GitHub issueI ma new to .net as well as MQTTnet. I am using the following client options for an IMqttClient, it connects to my AWS endpoint but the connection resets when I try to debug the application
var clientOptions = new MqttClientOptionsBuilder() .WithTcpServer(IoTEndPoint, Port) .WithTls(new MqttClientOptionsBuilderTlsParameters { UseTls = true, Certificates = certs }) .Build();
Any solution to this will be highly appreciated
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Client disconnection occurs on debugging the application
I ma new to .net as well as MQTTnet. I am using the following client options for an IMqttClient, it connects to my...
Read more >Issues with debugger suddenly and eradically disconecting.
Hey everyone, ever since updating to 2.3.2 I have had issues with the debugger suddenly resuming the game despite being paused at a...
Read more >Unable to start debugging because the object invoked has ...
This may be a possible answer for the problem. Some from the answer: Check which files were changed (why and how) after update...
Read more >Wireless AC Clients Randomly Disconnect
Users are being randomly disconnected from the wireless APs, all users are not disconnected at the same time. When Windows clients are disconnected...
Read more >Managed Debugging Assistant 'DisconnectedContext'
Managed Debugging Assistant 'DisconnectedContext' : 'Transition into COM. ... error: The object invoked has disconnected from its clients.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The solution is there, I solved it with giving .WithKeepAlivePeriod(new TimeSpan(0, 0, 0, 0, Timeout.Infinite)) to the client options
Yes I have, But I am not using websockets, I am connecting to the endpoint with certificates. I am able to connect and do basic pub sub in a go, but the client disconnects after some time interval. I noticed it while debugging my application. There is no issue with either the library or the way I am using it. I think there is some time span which is unknown to me which disconnects the client after some time