embedded server - websocket and/or XMLHttpRequests possible? #560
frenchfaso
started this conversation in
General
Replies: 1 comment 1 reply
-
It's possible, but you we'll need at tcp/ip stack (for example https://github.com/smoltcp-rs/smoltcp). Then fetch could be implemented by a regular http client implementation calling into smoltcp, which in turn sends ethernet packets to the VM. Some ideas have been discussed here: #198 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First things first:
v86 is awesome!
I played with the lua.html example and that got me thinking...
would some sort of javascript <--> v86 standard network communication be possible?
Something like websockets or XMLHttpRequest/fetch.
That would enable a "client - embedded server" workflow, one could for instance run a nodejs/pyrhon rest-api service in v86 and consume it from JavaScript all from the same static html page.
It would make it super easy to exploit the huge linux apps/utilities ecosystem without the need to wrestle with WASM porting/compilation..
Beta Was this translation helpful? Give feedback.
All reactions