dotnet / dotnet/MQTTnet

CleanSession==false not working

Open
#913 5 comments 0 reactions 0 assignees View on GitHub
managed-client question
Dominant language
C#
Stars
5.1k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

I use ManagedClient (Windows .net core) with Mosquitto as server.
When I first connect I set CleanSession to false.
After this I subscribe to several topics and receive Messages. After a call to StopAsync the message flow stops (intended).
When I call StartAsync again (passing the same parameters including CleanSession==false) I am connected and can send messages. But I don't receive any in ApplicationMessageReceived handler.

I thought CleanSession==false kepps subscriptions alive (restortes them).
Am I doing something wrong or is this an intended behaviour?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.