Skip to content

Conversation

@rvolosatovs
Copy link
Member

@rvolosatovs rvolosatovs commented Oct 18, 2024

It's a bit awkward until WASI 0.3, but it does work

Run proxy:

cargo build -p hello-component-tcp-proxy --target wasm32-wasip1 --release
wrpc-wasmtime tcp serve --export '[::1]:7762' ./target/wasm32-wasip1/release/hello_component_tcp_proxy.wasm

Run native server:

cargo run -p hello-tcp-server

Invoke native server via proxy:

cargo run -p hello-tcp-client [::1]:7762

@rvolosatovs rvolosatovs enabled auto-merge October 18, 2024 10:44
@rvolosatovs rvolosatovs force-pushed the feat/wasi-tcp branch 3 times, most recently from 39c1aa3 to a5d7214 Compare October 18, 2024 11:11
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
@rvolosatovs rvolosatovs force-pushed the feat/wasi-tcp branch 2 times, most recently from c862b73 to 3f8c7d2 Compare October 18, 2024 11:23
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
@rvolosatovs rvolosatovs added this pull request to the merge queue Oct 18, 2024
Merged via the queue into bytecodealliance:main with commit e3c9613 Oct 18, 2024
@rvolosatovs rvolosatovs deleted the feat/wasi-tcp branch October 18, 2024 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant