second-state / wasmedge_wasi_socket

A Rust lib for socket on WasmEdge.
https://second-state.github.io/wasmedge_wasi_socket/
Apache License 2.0
70 stars 29 forks source link

Q: Is it possible to plug-and-play with this? #22

Open srenatus opened 3 years ago

srenatus commented 3 years ago

Please bear with me, just wrapping my mind around how the WasmEdge stack works 😅

Right or wrong? To build, say, a kafka client library and use it to create a wasm module that wasmedge can run, I'd have to fork the existing client library, and swap out its internals, have it call the low-level tcp stream functions provided by this crate.

Thanks in advance!

hydai commented 3 years ago

Correct. Actually, we wrap the low-level socket operators as several tcp stream functions. To use the WASI-Socket feature, you will need to use this crate to replace the existing client library. Thanks.

srenatus commented 3 years ago

Thanks!

Are there plans to expand the protocols supported on top of wasi_socket?

juntao commented 3 years ago

We would love to support more networking protocols in our extension. The most obvious one is SSL and HTTPS. Anything else we should consider? Thanks.