{"action":"created","issue":{"url":"https://api.github.com/repos/bard/mozrepl/issues/51","labels_url":"https://api.github.com/repos/bard/mozrepl/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/bard/mozrepl/issues/51/comments","events_url":"https://api.github.com/repos/bard/mozrepl/issues/51/events","html_url":"https://github.com/bard/mozrepl/issues/51","id":27751741,"number":51,"title":"websocket mode","user":{"login":"flying-sheep","id":291575,"avatar_url":"https://avatars.githubusercontent.com/u/291575?v=3","gravatar_id":"","url":"https://api.github.com/users/flying-sheep","html_url":"https://github.com/flying-sheep","followers_url":"https://api.github.com/users/flying-sheep/followers","following_url":"https://api.github.com/users/flying-sheep/following{/other_user}","gists_url":"https://api.github.com/users/flying-sheep/gists{/gist_id}","starred_url":"https://api.github.com/users/flying-sheep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flying-sheep/subscriptions","organizations_url":"https://api.github.com/users/flying-sheep/orgs","repos_url":"https://api.github.com/users/flying-sheep/repos","events_url":"https://api.github.com/users/flying-sheep/events{/privacy}","received_events_url":"https://api.github.com/users/flying-sheep/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-02-17T21:54:07Z","updated_at":"2015-06-03T12:45:05Z","closed_at":null,"body":"how about replacing (or adding to) the ancient, text-based telnet protocol with websockets?\r\n\r\nwebsockets have a concept of messages, so a command and response don’t ahve to be parsed from a text stream, but are simply sent and received with ws.send() and ws.onmessage.\r\n\r\nonly disadavantage is that a shell isn’t simply “rlwrap telnet host port”."},"comment":{"url":"https://api.github.com/repos/bard/mozrepl/issues/comments/108381829","html_url":"https://github.com/bard/mozrepl/issues/51#issuecomment-108381829","issue_url":"https://api.github.com/repos/bard/mozrepl/issues/51","id":108381829,"user":{"login":"pyhedgehog","id":1286400,"avatar_url":"https://avatars.githubusercontent.com/u/1286400?v=3","gravatar_id":"","url":"https://api.github.com/users/pyhedgehog","html_url":"https://github.com/pyhedgehog","followers_url":"https://api.github.com/users/pyhedgehog/followers","following_url":"https://api.github.com/users/pyhedgehog/following{/other_user}","gists_url":"https://api.github.com/users/pyhedgehog/gists{/gist_id}","starred_url":"https://api.github.com/users/pyhedgehog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyhedgehog/subscriptions","organizations_url":"https://api.github.com/users/pyhedgehog/orgs","repos_url":"https://api.github.com/users/pyhedgehog/repos","events_url":"https://api.github.com/users/pyhedgehog/events{/privacy}","received_events_url":"https://api.github.com/users/pyhedgehog/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T12:45:05Z","updated_at":"2015-06-03T12:45:05Z","body":"-1. WebSockets designed as a ugly pile above http protocol to allow work from browser-restricted javascript. Adding support for it to MozRepl will increase risk of remote attack of local browser from remote-origin code.\r\nHowever you are right, that some message-oriented (or even object-oriented) protocol would be very usable. What about CORBA? It's object-oriented. It's cross-platform. It has libraries for almost every sane programming language (C, C++, Python, Perl to name a few). It would be very pretty to create XPCOM<->CORBA proxy generator. However this doesn't fit to this project scope."}}