Replies: 1 comment
-
We have a fetch-based networking for this
Also there is lwIP compiled in WASM and works with v86: #1048 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So this is purely an idea for now since I don't have enough motivation or time to do this. (It would be a lot of work)
My idea is to network the v86 instance to a http proxy running inside the browser. Most traffic is going to be https these days anyway so this should work reasonably well. Using a http/https proxy would allow for native network access without any external server theoretically. (CORS might be a problem in some cases)
To do this you would likely need to implement a mini network stack in the browser. You would need ARP and TCP/IP along with code to implement the proxy. Chances are you would also need dhcp and maybe even WPAD for auto discovery.
Maybe it would be possible to use an existing network stack via wasm.
Beta Was this translation helpful? Give feedback.
All reactions