{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/paho.mqtt.javascript/issues/90","repository_url":"https://api.github.com/repos/eclipse/paho.mqtt.javascript","labels_url":"https://api.github.com/repos/eclipse/paho.mqtt.javascript/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/paho.mqtt.javascript/issues/90/comments","events_url":"https://api.github.com/repos/eclipse/paho.mqtt.javascript/issues/90/events","html_url":"https://github.com/eclipse/paho.mqtt.javascript/issues/90","id":186655423,"number":90,"title":"Get current client status","user":{"login":"Alphatiger","id":11651485,"avatar_url":"https://avatars.githubusercontent.com/u/11651485?v=3","gravatar_id":"","url":"https://api.github.com/users/Alphatiger","html_url":"https://github.com/Alphatiger","followers_url":"https://api.github.com/users/Alphatiger/followers","following_url":"https://api.github.com/users/Alphatiger/following{/other_user}","gists_url":"https://api.github.com/users/Alphatiger/gists{/gist_id}","starred_url":"https://api.github.com/users/Alphatiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alphatiger/subscriptions","organizations_url":"https://api.github.com/users/Alphatiger/orgs","repos_url":"https://api.github.com/users/Alphatiger/repos","events_url":"https://api.github.com/users/Alphatiger/events{/privacy}","received_events_url":"https://api.github.com/users/Alphatiger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-01T21:40:45Z","updated_at":"2016-11-02T08:03:22Z","closed_at":null,"body":"Hi can we get the current client status\r\n\r\nThe idea is before sending a message check the client connection status if disconnected then reconnect and then send message\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/eclipse/paho.mqtt.javascript/issues/comments/257796997","html_url":"https://github.com/eclipse/paho.mqtt.javascript/issues/90#issuecomment-257796997","issue_url":"https://api.github.com/repos/eclipse/paho.mqtt.javascript/issues/90","id":257796997,"user":{"login":"kenvernaillenvub","id":16806925,"avatar_url":"https://avatars.githubusercontent.com/u/16806925?v=3","gravatar_id":"","url":"https://api.github.com/users/kenvernaillenvub","html_url":"https://github.com/kenvernaillenvub","followers_url":"https://api.github.com/users/kenvernaillenvub/followers","following_url":"https://api.github.com/users/kenvernaillenvub/following{/other_user}","gists_url":"https://api.github.com/users/kenvernaillenvub/gists{/gist_id}","starred_url":"https://api.github.com/users/kenvernaillenvub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenvernaillenvub/subscriptions","organizations_url":"https://api.github.com/users/kenvernaillenvub/orgs","repos_url":"https://api.github.com/users/kenvernaillenvub/repos","events_url":"https://api.github.com/users/kenvernaillenvub/events{/privacy}","received_events_url":"https://api.github.com/users/kenvernaillenvub/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T08:03:22Z","updated_at":"2016-11-02T08:03:22Z","body":"Paho.MQTT.Client#send\r\n@throws {InvalidState} if the client is not connected.\r\n\r\n-> line 915\r\n```\r\nif (!this.connected)\r\n\tthrow new Error(format(ERROR.INVALID_STATE, [\"not connected\"]));\r\n```\r\n\r\nNormally you should be able to catch this Error. (Didn't try it yet)"}}
{"actor":{"display_login":"kenvernaillenvub"}}