Ok, I understand how you'd run a CPU emulator written in JS, in a browser, but how do these things get raw socket access?
If you're running in a browser, all the network access you get is HTTP AJAX, right?
If you're running in a browser, all the network access you get is HTTP AJAX, right?
And it's not quite "the browser" in the usual sense, but Chrome Apps (and, I believe, extensions?) get access to TCP and UDP APIs: https://developer.chrome.com/apps/app_network