deno_std icon indicating copy to clipboard operation
deno_std copied to clipboard

WASI: Implement sock_accept() for snapshot1

Open sinclairzx81 opened this issue 3 years ago • 3 comments

Hi, was wondering if https://deno.land/[email protected]/wasi could implement the sock_accept function on the current preview1 snapshot. I note that this function was included in the WASI snapshot a little while ago (see https://github.com/WebAssembly/WASI/pull/458), but would be quite good to see implemented in Deno (effectively allowing Deno to host network processes implemented in WASM).

Would this be possible?

sinclairzx81 avatar Jun 22 '22 10:06 sinclairzx81

CC @cjihrig

bartlomieju avatar Jun 22 '22 10:06 bartlomieju

I think it makes sense to support this.

cjihrig avatar Jun 22 '22 14:06 cjihrig

There was a bunch of discussion about this today in Discord starting from roughly here. This may be blocked on not wanting an op in core for performing accept().

cjihrig avatar Jun 24 '22 14:06 cjihrig

Closing this, as std/wasi is now deprecated. If you still need to use WASI in Deno, use wasmer-js instead.

iuioiua avatar Nov 03 '23 00:11 iuioiua