{"action":"closed","issue":{"url":"https://api.github.com/repos/ckrey/MQTT-Client-Framework/issues/214","repository_url":"https://api.github.com/repos/ckrey/MQTT-Client-Framework","labels_url":"https://api.github.com/repos/ckrey/MQTT-Client-Framework/issues/214/labels{/name}","comments_url":"https://api.github.com/repos/ckrey/MQTT-Client-Framework/issues/214/comments","events_url":"https://api.github.com/repos/ckrey/MQTT-Client-Framework/issues/214/events","html_url":"https://github.com/ckrey/MQTT-Client-Framework/issues/214","id":181753136,"number":214,"title":"Will Message not working sometimes with MQTTSessionManager","user":{"login":"wenxin3262","id":6465423,"avatar_url":"https://avatars.githubusercontent.com/u/6465423?v=3","gravatar_id":"","url":"https://api.github.com/users/wenxin3262","html_url":"https://github.com/wenxin3262","followers_url":"https://api.github.com/users/wenxin3262/followers","following_url":"https://api.github.com/users/wenxin3262/following{/other_user}","gists_url":"https://api.github.com/users/wenxin3262/gists{/gist_id}","starred_url":"https://api.github.com/users/wenxin3262/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wenxin3262/subscriptions","organizations_url":"https://api.github.com/users/wenxin3262/orgs","repos_url":"https://api.github.com/users/wenxin3262/repos","events_url":"https://api.github.com/users/wenxin3262/events{/privacy}","received_events_url":"https://api.github.com/users/wenxin3262/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ckrey/MQTT-Client-Framework/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-07T19:47:51Z","updated_at":"2016-10-19T07:16:07Z","closed_at":"2016-10-19T07:16:07Z","body":" ```\r\n        sessionManager.connect(to: mqttServer,\r\n                               port: 1883,\r\n                               tls: false,\r\n                               keepalive: 10,\r\n                               clean: true,\r\n                               auth: false,\r\n                               user: \"\",\r\n                               pass: \"\",\r\n                               will: true,\r\n                               willTopic: lastWillTopic,\r\n                               willMsg: lastWillMessage,\r\n                               willQos: .atLeastOnce,\r\n                               willRetainFlag: false,\r\n                               withClientId: clientId)\r\n```\r\nMy broker is working correctly. Will Message works all the time when using MQTTSession directly. But with the manager, will message is missing. Sub/Pub goes fine, and I didn't use persistence feature.\r\n1. click home button to enter background, saw connection closed in the log, but will message never shows up.\r\n2. terminate app directly, will message not working.\r\n3. Now weird stuff is calling connect twice in a row like the code above, will message working when terminate the app."}}
{"actor":{"display_login":"ckrey"}}