{"action":"created","issue":{"url":"https://api.github.com/repos/MicrosoftDX/Vorlonjs/issues/186","labels_url":"https://api.github.com/repos/MicrosoftDX/Vorlonjs/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/MicrosoftDX/Vorlonjs/issues/186/comments","events_url":"https://api.github.com/repos/MicrosoftDX/Vorlonjs/issues/186/events","html_url":"https://github.com/MicrosoftDX/Vorlonjs/issues/186","id":104564726,"number":186,"title":"How to Remote Debug a client build?","user":{"login":"pebanfield","id":750588,"avatar_url":"https://avatars.githubusercontent.com/u/750588?v=3","gravatar_id":"","url":"https://api.github.com/users/pebanfield","html_url":"https://github.com/pebanfield","followers_url":"https://api.github.com/users/pebanfield/followers","following_url":"https://api.github.com/users/pebanfield/following{/other_user}","gists_url":"https://api.github.com/users/pebanfield/gists{/gist_id}","starred_url":"https://api.github.com/users/pebanfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pebanfield/subscriptions","organizations_url":"https://api.github.com/users/pebanfield/orgs","repos_url":"https://api.github.com/users/pebanfield/repos","events_url":"https://api.github.com/users/pebanfield/events{/privacy}","received_events_url":"https://api.github.com/users/pebanfield/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-02T20:28:25Z","updated_at":"2015-09-02T22:28:23Z","closed_at":null,"body":"Hi - I've poured over the documentation and have not found how to configure vorlon to work with a remote client build. The documentation instructs adding the following script tag to the client build; \r\n\r\n```<script src=\"http://localhost:1337/vorlon.js\"></script>```\r\n\r\nThis works fine when the client build is hosted on my development machine. So far so good. However, when I try to change the host to point at a network ip or domain so that I can debug a LAN device (in this case a smart tv) it does not work. \r\n\r\nFor example - \r\n```<script src=\"http://my.local.dev.server:1337/vorlon.js\"></script>```\r\n\r\nLooking a little closer at the rendered vorlon.js I see the following line of code - \r\n\r\nthis.loadingDirectory=\"http://localhost:3000/vorlon/plugins\"\r\n\r\nIf this code is intended to be executed on my target device - I fail to see how this would ever work for remote debugging outside of the context of running the client on the same machine that is hosting the vorlon server? Is there some configuration option I am missing? Have you tested this use case? The vorlon documentation seems to explain this as a primary use case so I am somewhat confused. \r\n\r\nThanks!\r\n\r\nPeter"},"comment":{"url":"https://api.github.com/repos/MicrosoftDX/Vorlonjs/issues/comments/137263127","html_url":"https://github.com/MicrosoftDX/Vorlonjs/issues/186#issuecomment-137263127","issue_url":"https://api.github.com/repos/MicrosoftDX/Vorlonjs/issues/186","id":137263127,"user":{"login":"pebanfield","id":750588,"avatar_url":"https://avatars.githubusercontent.com/u/750588?v=3","gravatar_id":"","url":"https://api.github.com/users/pebanfield","html_url":"https://github.com/pebanfield","followers_url":"https://api.github.com/users/pebanfield/followers","following_url":"https://api.github.com/users/pebanfield/following{/other_user}","gists_url":"https://api.github.com/users/pebanfield/gists{/gist_id}","starred_url":"https://api.github.com/users/pebanfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pebanfield/subscriptions","organizations_url":"https://api.github.com/users/pebanfield/orgs","repos_url":"https://api.github.com/users/pebanfield/repos","events_url":"https://api.github.com/users/pebanfield/events{/privacy}","received_events_url":"https://api.github.com/users/pebanfield/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T22:28:23Z","updated_at":"2015-09-02T22:28:23Z","body":"Ok so I noticed that the vorlon client script queries the window.location.host to derive the host so that makes sense now. Otherwise, I might just be partly not fully understanding the sockets design. My current guess is that the websockets implementation expects to be running on the same host. Perhaps this is configurable or perhaps this limitation is by design for security reasons?"}}