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

Offline persistence with clean_session #109

Closed
csoreff opened this issue Jan 15, 2018 · 1 comment
Closed

Offline persistence with clean_session #109

csoreff opened this issue Jan 15, 2018 · 1 comment

Comments

@csoreff
Copy link

csoreff commented Jan 15, 2018

If I pass clean_session: false to client, everything seems to break with #0 Protocol error occurs.,MQTT::ProtocolException,Failed to read byte from socket. Is there a known method for persisting when internet connection is lost? Trying to use a custom fork of https://github.com/toyokazu/fluent-plugin-mqtt-io/tree/remove_reconnection_and_add_qos_retain to allow offline persistence, but having some trouble.

@njh
Copy link
Owner

njh commented Jan 15, 2018

clean_session: false is for server-side persistence. The server should queue-up messages while the client is offline and deliver them when the client re-connects. This should be working fine.

Client-side persistence (i.e. messages trying to be sent while the client is offline) is not currently supported and is covered by #52.

@njh njh closed this as completed Apr 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants