-
Notifications
You must be signed in to change notification settings - Fork 94
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
Persistence is not implemented #25
Comments
I've removed the OnDisconnect callback and moved to OnConnectionLost instead and used a specific Error type to indicate when it was a server initiated disconnect (see test change) eclipse-paho#25 eclipse-paho#26
I am taking another look at the implementation of persistence. A few initial thoughts:
Anyway thought I should add a note to indicate that there are plans to do this (no guarantee on a time-frame sorry) ; if anyone has any thoughts/requirements then please let me know so I can feed these into the design. |
@MattBrittan Do you have a plan for how long to enable the We've been trying to use this session feature recently with this library, and I've also integrated this MQTT protocol into CloudEvents, maybe more people will pay attention to this later. |
@yanmxa I'm actually working on it right now. However I don't know if my current attempt will be successful (or, if it is, how long it will take). The challenge is implementing this in a way that keeps the library simple and idiomatic (really want to avoid the complexity of the v3.1 client). |
After three years of minimal activity I'm thrilled to say that we now have two potential solutions to this issue (links to repos below): These solutions are quite different approaches and will each have advantages/disadvantages. I think it's fair to say that the solution from @vishnureddy17 is incremental (same basic structure but does significantly change network subroutines) whereas mine is a more fundamental change (decouples the session from Both of these repos should be treated as a work in progress; they both contain working code but there are likely to be bugs (and my code definitely needs tidying up!). We are really keen to receive feedback, along with any other ideas on how best to approach this. Whichever approach we end up taking this is going to be a major change (and I'm sure some existing code will break), but it's important that we get this right (and it's not easy - most libraries do not fully support persistent session state). Anyway I'm really happy that the road to V1 is now open again (this issue needs to be closed before that because of the likelihood that there will be breaking changes). |
is there an equivalent clientconfig.SetConnectionLostHandler() ? |
Your comment does not seem directly related to this issue? Paho has |
Describe the bug
The package includes a
Persistence
interface along with two implementations (noopPersistence
andMemoryPersistence
) but these are not currently used. I have classed this as a bug rather than a feature request because it's partially implemented (and therefore likely to be confusing to new users).To reproduce
Attempt to use the Persistence implementations.
Debug output
N/A
Expected behaviour
Messages persist as per the MQTT spec.
Software used:
Additional context
Mentioned in #23
The text was updated successfully, but these errors were encountered: