{"action":"opened","issue":{"url":"https://api.github.com/repos/aws/aws-iot-device-sdk-js/issues/72","repository_url":"https://api.github.com/repos/aws/aws-iot-device-sdk-js","labels_url":"https://api.github.com/repos/aws/aws-iot-device-sdk-js/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-iot-device-sdk-js/issues/72/comments","events_url":"https://api.github.com/repos/aws/aws-iot-device-sdk-js/issues/72/events","html_url":"https://github.com/aws/aws-iot-device-sdk-js/issues/72","id":163545152,"number":72,"title":"awsIot.thingShadow#subscribe : documentation about callback is incorrect !","user":{"login":"linqOxelar","id":18004866,"avatar_url":"https://avatars.githubusercontent.com/u/18004866?v=3","gravatar_id":"","url":"https://api.github.com/users/linqOxelar","html_url":"https://github.com/linqOxelar","followers_url":"https://api.github.com/users/linqOxelar/followers","following_url":"https://api.github.com/users/linqOxelar/following{/other_user}","gists_url":"https://api.github.com/users/linqOxelar/gists{/gist_id}","starred_url":"https://api.github.com/users/linqOxelar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linqOxelar/subscriptions","organizations_url":"https://api.github.com/users/linqOxelar/orgs","repos_url":"https://api.github.com/users/linqOxelar/repos","events_url":"https://api.github.com/users/linqOxelar/events{/privacy}","received_events_url":"https://api.github.com/users/linqOxelar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-03T03:20:38Z","updated_at":"2016-07-03T03:20:38Z","closed_at":null,"body":"Callback of subscribe returns **3 arguments instead of 2**, which is not documented in [awsIot.thingShadow#subscribe(topic, [options], [callback])](https://github.com/aws/aws-iot-device-sdk-js#subscribe) !\r\n\r\nawsIot.thingShadow#subscribe(topic, [options], [callback]) is supposed to inherit from [mqtt.Client#subscribe(topic/topic array/topic object, [options], [callback])](https://github.com/mqttjs/MQTT.js/blob/master/README.md#subscribe) and there is only 2 arguments in callback.\r\n\r\n**First arguments seems to be the topic, second arguments is Error (i suppose) and third arguments is granted (topic and options).**\r\n\r\nAgain documentation fails and makes us WAIST time in developping/debug AWS IOT !\r\n(mentionning former and related issue of March 24 in [thingShadow.subscribe & event (message)](https://github.com/aws/aws-iot-device-sdk-js/issues/44)"}}
{"actor":{"display_login":"linqOxelar"}}