logoalt Hacker News

s-mackeyesterday at 5:01 PM1 replyview on HN

You can write a network device driver, which exports the network packages into JavaScript. The author already wrote a console device. So, not much of a deal.

https://github.com/joelseverin/linux-wasm/blob/master/patche...


Replies

seanw265yesterday at 5:30 PM

Doable for http and https, but if you're running it in a browser environment, you'll eventually run into issues with CORS and other protocols. To get around this you need a proxy server running elsewhere that exposes the lower layers of the network stack.

show 1 reply