{"action":"created","issue":{"url":"https://api.github.com/repos/saltyrtc/saltyrtc-client-java/issues/24","repository_url":"https://api.github.com/repos/saltyrtc/saltyrtc-client-java","labels_url":"https://api.github.com/repos/saltyrtc/saltyrtc-client-java/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/saltyrtc/saltyrtc-client-java/issues/24/comments","events_url":"https://api.github.com/repos/saltyrtc/saltyrtc-client-java/issues/24/events","html_url":"https://github.com/saltyrtc/saltyrtc-client-java/issues/24","id":179806278,"number":24,"title":"Determining of first common task","user":{"login":"dbrgn","id":105168,"avatar_url":"https://avatars.githubusercontent.com/u/105168?v=3","gravatar_id":"","url":"https://api.github.com/users/dbrgn","html_url":"https://github.com/dbrgn","followers_url":"https://api.github.com/users/dbrgn/followers","following_url":"https://api.github.com/users/dbrgn/following{/other_user}","gists_url":"https://api.github.com/users/dbrgn/gists{/gist_id}","starred_url":"https://api.github.com/users/dbrgn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbrgn/subscriptions","organizations_url":"https://api.github.com/users/dbrgn/orgs","repos_url":"https://api.github.com/users/dbrgn/repos","events_url":"https://api.github.com/users/dbrgn/events{/privacy}","received_events_url":"https://api.github.com/users/dbrgn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"lgrahl","id":1793755,"avatar_url":"https://avatars.githubusercontent.com/u/1793755?v=3","gravatar_id":"","url":"https://api.github.com/users/lgrahl","html_url":"https://github.com/lgrahl","followers_url":"https://api.github.com/users/lgrahl/followers","following_url":"https://api.github.com/users/lgrahl/following{/other_user}","gists_url":"https://api.github.com/users/lgrahl/gists{/gist_id}","starred_url":"https://api.github.com/users/lgrahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgrahl/subscriptions","organizations_url":"https://api.github.com/users/lgrahl/orgs","repos_url":"https://api.github.com/users/lgrahl/repos","events_url":"https://api.github.com/users/lgrahl/events{/privacy}","received_events_url":"https://api.github.com/users/lgrahl/received_events","type":"User","site_admin":false},"assignees":[{"login":"lgrahl","id":1793755,"avatar_url":"https://avatars.githubusercontent.com/u/1793755?v=3","gravatar_id":"","url":"https://api.github.com/users/lgrahl","html_url":"https://github.com/lgrahl","followers_url":"https://api.github.com/users/lgrahl/followers","following_url":"https://api.github.com/users/lgrahl/following{/other_user}","gists_url":"https://api.github.com/users/lgrahl/gists{/gist_id}","starred_url":"https://api.github.com/users/lgrahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgrahl/subscriptions","organizations_url":"https://api.github.com/users/lgrahl/orgs","repos_url":"https://api.github.com/users/lgrahl/repos","events_url":"https://api.github.com/users/lgrahl/events{/privacy}","received_events_url":"https://api.github.com/users/lgrahl/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-09-28T15:27:58Z","updated_at":"2016-09-28T16:07:10Z","closed_at":null,"body":"> The initiator SHALL continue by comparing the provided tasks to its own Array of available tasks and MUST choose the first common task from both Arrays. \r\n\r\nIn the following case, which one is the first common task?\r\n\r\n    initiator: ['webrtc', 'ortc']\r\n    responder: ['ortc', 'webrtc']\r\n\r\nI assume it's `webrtc`, as the initiator is the one that chooses, so it gets the pick.\r\n\r\nWhat about this wording?\r\n\r\n> The initiator SHALL continue by comparing the provided tasks to its own Array of available tasks. It MUST choose the first task in its own list of available tasks that is also contained in the list of provided tasks.\r\n\r\nThat would mean that in the example above, `webrtc` is chosen.\r\n\r\nIt would also mean that in the following case...\r\n\r\n    initiator: ['webrtc', 'ortc', 'email']\r\n    responder: ['ortc', 'websockets', 'email', 'sms', 'carrier-pigeons', 'webrtc']\r\n\r\n...webrtc would be chosen, even though webrtc is the least preferred task of the responder, and even though ortc would look like a good match in this case.\r\n\r\n@lgrahl what are your thoughts?"},"comment":{"url":"https://api.github.com/repos/saltyrtc/saltyrtc-client-java/issues/comments/250214477","html_url":"https://github.com/saltyrtc/saltyrtc-client-java/issues/24#issuecomment-250214477","issue_url":"https://api.github.com/repos/saltyrtc/saltyrtc-client-java/issues/24","id":250214477,"user":{"login":"dbrgn","id":105168,"avatar_url":"https://avatars.githubusercontent.com/u/105168?v=3","gravatar_id":"","url":"https://api.github.com/users/dbrgn","html_url":"https://github.com/dbrgn","followers_url":"https://api.github.com/users/dbrgn/followers","following_url":"https://api.github.com/users/dbrgn/following{/other_user}","gists_url":"https://api.github.com/users/dbrgn/gists{/gist_id}","starred_url":"https://api.github.com/users/dbrgn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbrgn/subscriptions","organizations_url":"https://api.github.com/users/dbrgn/orgs","repos_url":"https://api.github.com/users/dbrgn/repos","events_url":"https://api.github.com/users/dbrgn/events{/privacy}","received_events_url":"https://api.github.com/users/dbrgn/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T16:07:10Z","updated_at":"2016-09-28T16:07:10Z","body":"> the initiator SHALL select the most highly preferred protocol that it supports which is also advertised by the responder.\r\n\r\nThat would result in the ALPN algorithm though. Your approach does not follow that description. It would probably choose a random entry in the case of my first example, and `ortc` in the second example, which is not the most highly preferred protocol of the initiator that is also advertised by the responder."}}
{"actor":{"display_login":"dbrgn"}}