{"action":"created","issue":{"url":"https://api.github.com/repos/node-inspector/node-inspector/issues/515","labels_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/515/labels{/name}","comments_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/515/comments","events_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/515/events","html_url":"https://github.com/node-inspector/node-inspector/pull/515","id":53403831,"number":515,"title":"WIP: Register node-inspector as a RemoteDebug-endpoint over mDNS/Bonjour","user":{"login":"auchenberg","id":173559,"avatar_url":"https://avatars.githubusercontent.com/u/173559?v=3","gravatar_id":"","url":"https://api.github.com/users/auchenberg","html_url":"https://github.com/auchenberg","followers_url":"https://api.github.com/users/auchenberg/followers","following_url":"https://api.github.com/users/auchenberg/following{/other_user}","gists_url":"https://api.github.com/users/auchenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/auchenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auchenberg/subscriptions","organizations_url":"https://api.github.com/users/auchenberg/orgs","repos_url":"https://api.github.com/users/auchenberg/repos","events_url":"https://api.github.com/users/auchenberg/events{/privacy}","received_events_url":"https://api.github.com/users/auchenberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-05T14:57:02Z","updated_at":"2015-01-22T10:01:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/node-inspector/node-inspector/pulls/515","html_url":"https://github.com/node-inspector/node-inspector/pull/515","diff_url":"https://github.com/node-inspector/node-inspector/pull/515.diff","patch_url":"https://github.com/node-inspector/node-inspector/pull/515.patch"},"body":"This PR makes it possible for external tools like [chrome-devtools-app](https://github.com/auchenberg/chrome-devtools-app/), to discover an instance of node-inspector as a \"RemoteDebug-endpoint\" over mDNS/Bonjour, as a follow up on https://github.com/node-inspector/node-inspector/issues/506. \r\n\r\nThe idea here is to enable discovery of [RemoteDebug](http://remotedebug.org)-compliant endpoints over MDNS. The metadata is based upon the existing Chrome Remote Debug HTTP API. I'm planning to write a little spec for RemoteDebug Endpoint MDNS functionality too. \r\n\r\n![bonjour browser](https://cloud.githubusercontent.com/assets/173559/5614605/05fe966a-94f3-11e4-846a-298f1e854c38.png)\r\n\r\n\r\n### Changes:\r\n- [x] New utility methods has been added to generate URL's.\r\n- [x] Added remoteDebugService to register the service over MDNS.\r\n- [x] Change default web-host to local detected IP instead of 127.0.0.1\r\n\r\n### Questions:\r\n1) I had to change the default web-host to the local IP instead of 127.0.0.1, as the IP is needed in order to enable other clients to connect. Does this open up a security risk? Is there any reason why 127.0.0.1/0.0.0.0 currently is used?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/node-inspector/node-inspector/issues/comments/70997068","html_url":"https://github.com/node-inspector/node-inspector/pull/515#issuecomment-70997068","issue_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/515","id":70997068,"user":{"login":"auchenberg","id":173559,"avatar_url":"https://avatars.githubusercontent.com/u/173559?v=3","gravatar_id":"","url":"https://api.github.com/users/auchenberg","html_url":"https://github.com/auchenberg","followers_url":"https://api.github.com/users/auchenberg/followers","following_url":"https://api.github.com/users/auchenberg/following{/other_user}","gists_url":"https://api.github.com/users/auchenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/auchenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auchenberg/subscriptions","organizations_url":"https://api.github.com/users/auchenberg/orgs","repos_url":"https://api.github.com/users/auchenberg/repos","events_url":"https://api.github.com/users/auchenberg/events{/privacy}","received_events_url":"https://api.github.com/users/auchenberg/received_events","type":"User","site_admin":false},"created_at":"2015-01-22T10:01:30Z","updated_at":"2015-01-22T10:01:30Z","body":"I'm holding on this PR, until I find a suitable replacement for ``mdns``, as we can't add such a dependency to the project. "}}