{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/web-nfc/issues/82","labels_url":"https://api.github.com/repos/w3c/web-nfc/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/w3c/web-nfc/issues/82/comments","events_url":"https://api.github.com/repos/w3c/web-nfc/issues/82/events","html_url":"https://github.com/w3c/web-nfc/issues/82","id":114231645,"number":82,"title":"Make NFCPushOptions optional for pushMessage","user":{"login":"alexshalamov","id":1001009,"avatar_url":"https://avatars.githubusercontent.com/u/1001009?v=3","gravatar_id":"","url":"https://api.github.com/users/alexshalamov","html_url":"https://github.com/alexshalamov","followers_url":"https://api.github.com/users/alexshalamov/followers","following_url":"https://api.github.com/users/alexshalamov/following{/other_user}","gists_url":"https://api.github.com/users/alexshalamov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexshalamov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexshalamov/subscriptions","organizations_url":"https://api.github.com/users/alexshalamov/orgs","repos_url":"https://api.github.com/users/alexshalamov/repos","events_url":"https://api.github.com/users/alexshalamov/events{/privacy}","received_events_url":"https://api.github.com/users/alexshalamov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-30T09:28:22Z","updated_at":"2015-10-30T15:58:33Z","closed_at":null,"body":"In my opinion, by making NFCPushOptions optional, we can improve API usability and developers would need to type less code for main use-cases.\r\n\r\n```javascript\r\npushMessage(message);\r\n\r\n// Instead of\r\n\r\npushMessage(message, {target: \"tag\", timeout: Infinity});\r\n```"},"comment":{"url":"https://api.github.com/repos/w3c/web-nfc/issues/comments/152565327","html_url":"https://github.com/w3c/web-nfc/issues/82#issuecomment-152565327","issue_url":"https://api.github.com/repos/w3c/web-nfc/issues/82","id":152565327,"user":{"login":"zolkis","id":996058,"avatar_url":"https://avatars.githubusercontent.com/u/996058?v=3","gravatar_id":"","url":"https://api.github.com/users/zolkis","html_url":"https://github.com/zolkis","followers_url":"https://api.github.com/users/zolkis/followers","following_url":"https://api.github.com/users/zolkis/following{/other_user}","gists_url":"https://api.github.com/users/zolkis/gists{/gist_id}","starred_url":"https://api.github.com/users/zolkis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zolkis/subscriptions","organizations_url":"https://api.github.com/users/zolkis/orgs","repos_url":"https://api.github.com/users/zolkis/repos","events_url":"https://api.github.com/users/zolkis/events{/privacy}","received_events_url":"https://api.github.com/users/zolkis/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T15:58:33Z","updated_at":"2015-10-30T15:58:33Z","body":"If we can have sensible defaults, why not.\r\nI expect that most of the pushes will be done to peers, and tags are much more often read than written.\r\nIf we need to set default values, then I am inclined to make \"peer\" the default target for a push.\r\n\r\nTimeout could be set to Infinity as a default."}}