{"action":"created","issue":{"url":"https://api.github.com/repos/chkr1011/MQTTnet/issues/498","repository_url":"https://api.github.com/repos/chkr1011/MQTTnet","labels_url":"https://api.github.com/repos/chkr1011/MQTTnet/issues/498/labels{/name}","comments_url":"https://api.github.com/repos/chkr1011/MQTTnet/issues/498/comments","events_url":"https://api.github.com/repos/chkr1011/MQTTnet/issues/498/events","html_url":"https://github.com/chkr1011/MQTTnet/issues/498","id":391398488,"node_id":"MDU6SXNzdWUzOTEzOTg0ODg=","number":498,"title":"How to receive and store all published messages if a client goes offline?","user":{"login":"saba-sabrin","id":7774786,"node_id":"MDQ6VXNlcjc3NzQ3ODY=","avatar_url":"https://avatars1.githubusercontent.com/u/7774786?v=4","gravatar_id":"","url":"https://api.github.com/users/saba-sabrin","html_url":"https://github.com/saba-sabrin","followers_url":"https://api.github.com/users/saba-sabrin/followers","following_url":"https://api.github.com/users/saba-sabrin/following{/other_user}","gists_url":"https://api.github.com/users/saba-sabrin/gists{/gist_id}","starred_url":"https://api.github.com/users/saba-sabrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saba-sabrin/subscriptions","organizations_url":"https://api.github.com/users/saba-sabrin/orgs","repos_url":"https://api.github.com/users/saba-sabrin/repos","events_url":"https://api.github.com/users/saba-sabrin/events{/privacy}","received_events_url":"https://api.github.com/users/saba-sabrin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-12-15T17:55:25Z","updated_at":"2018-12-17T13:48:07Z","closed_at":null,"author_association":"NONE","body":"Hello! I am working with MQTT Broker and Client using MQTTnet library. Using the latest version. I have seen a situation where if a client goes offline after subscribing to a topic then, all the messages published on that during that time is not shown when the client reconnects. I have used the following for the client configuration:\r\n\r\nClean Session = false\r\nQoS = 1 or 2 (AtMostOnce or ExactlyOnce)\r\n\r\nAccording to my understanding, the server should have an internal queue where it should store the messages and when client reconnects, there should be a possibility to deliver all the messages received when the client was offline. I do understand the message retain policy. I have checked the json file being generated by the server where it received only the last message on the topic and when the retain flag is true, the Client when reconnects, only gets the single last message published on that subscribed topic.\r\n\r\nMy question is, how can I receive all the messages which was published when the client was offline. Please help me on this. \r\nThank You"},"comment":{"url":"https://api.github.com/repos/chkr1011/MQTTnet/issues/comments/447851357","html_url":"https://github.com/chkr1011/MQTTnet/issues/498#issuecomment-447851357","issue_url":"https://api.github.com/repos/chkr1011/MQTTnet/issues/498","id":447851357,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Nzg1MTM1Nw==","user":{"login":"chkr1011","id":6939810,"node_id":"MDQ6VXNlcjY5Mzk4MTA=","avatar_url":"https://avatars2.githubusercontent.com/u/6939810?v=4","gravatar_id":"","url":"https://api.github.com/users/chkr1011","html_url":"https://github.com/chkr1011","followers_url":"https://api.github.com/users/chkr1011/followers","following_url":"https://api.github.com/users/chkr1011/following{/other_user}","gists_url":"https://api.github.com/users/chkr1011/gists{/gist_id}","starred_url":"https://api.github.com/users/chkr1011/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chkr1011/subscriptions","organizations_url":"https://api.github.com/users/chkr1011/orgs","repos_url":"https://api.github.com/users/chkr1011/repos","events_url":"https://api.github.com/users/chkr1011/events{/privacy}","received_events_url":"https://api.github.com/users/chkr1011/received_events","type":"User","site_admin":false},"created_at":"2018-12-17T13:48:07Z","updated_at":"2018-12-17T13:48:07Z","author_association":"OWNER","body":"Please try to set the _EnablePersistentSessions_ property to _true_ at the server options."}}
{"actor":{"display_login":"chkr1011"}}