quic-go / webtransport-go

WebTransport implementation based on quic-go (https://datatracker.ietf.org/doc/draft-ietf-webtrans-http3/)
https://quic-go.net
MIT License
329 stars 52 forks source link

add an example #154

Open ValorZard opened 4 months ago

ValorZard commented 4 months ago

Hello! I'm very interested in using this engine, but I can't seem to figure out how exactly to use it. I've looked at the documentation, but all I see are just snippets of code. I'd really appreciate it if there could be one example project or code that does a minimal version of how to setup a webtransport client and server

marten-seemann commented 4 months ago

Please refer to https://quic-go.net/docs/webtransport/. We have sample code for both client and server side there.

marten-seemann commented 4 months ago

We could add some example code to this repo though, similar to what we have in quic-go.

anderspitman commented 1 month ago

Anyone finding this later might be interested in the PR I opened which shows a simple echo setup: https://github.com/quic-go/webtransport-go/pull/122

I don't think it compiles as-is anymore, but should be you close.