A Linux system running over JavaScript
A Linux system running over JavaScript
Posted May 23, 2011 14:16 UTC (Mon) by Simetrical (guest, #53439)In reply to: A Linux system running over JavaScript by dag-
Parent article: A Linux system running over JavaScript
What do you propose, tunneling TCP over XMLHttpRequest? XHR requires you to submit the full request up front and doesn't give you the response until it's completely received, so you'd have to create and destroy an entire HTTP session every time you wanted to send or receive a single packet to or from the tunnel. I don't recommend you try running SSH this way -- the latency would likely be insufferable.
This might be feasible once WebSockets is usable again. But it would only work if the server trusts the client not to abuse it as an anonymous proxy. Realistically, as I said, it would be more plausible to write a version that works as a browser extension of some kind, while still being written entirely or almost entirely in JavaScript. Then you could conceivably have real networking access.
