Skip to content

[rust] Add streams WebTransport client and server examples#1258

Open
cargopete wants to merge 1 commit into
bytecodealliance:mainfrom
cargopete:feat/streams-web-examples
Open

[rust] Add streams WebTransport client and server examples#1258
cargopete wants to merge 1 commit into
bytecodealliance:mainfrom
cargopete:feat/streams-web-examples

Conversation

@cargopete
Copy link
Copy Markdown
Contributor

Closes #479.

Adds streams-web-client and streams-web-server examples, matching the existing streams-nats-{client,server}, streams-quic-{client,server}, and streams-tcp-{client,server} pairs.

The WebTransport transport uses wtransport with a self-signed certificate (generated via rcgen at startup) and an Insecure cert verifier on the client side — the same pattern as the existing hello-web-{client,server} and wasi-keyvalue-web-server examples.

Both examples implement wrpc-examples:streams/handler.echo, echoing back a stream of numbers and a stream of bytes.

Running:

# terminal 1
cargo run -p streams-web-server

# terminal 2
cargo run -p streams-web-client "https://[::1]:4433"

Note: on macOS localhost may resolve to 127.0.0.1 rather than ::1, so pass the explicit IPv6 address when the server is bound to [::1] (the default).

@cargopete cargopete requested a review from rvolosatovs as a code owner May 28, 2026 12:53
@cargopete cargopete force-pushed the feat/streams-web-examples branch from 0ef426d to f0a0e22 Compare May 28, 2026 12:54
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.

[rust] Examples using WebTransport

1 participant