DRAFT: feat(engineio): add WebTransport transport support#505
Draft
bneigher wants to merge 1 commit into1c3t3a:mainfrom
Draft
DRAFT: feat(engineio): add WebTransport transport support#505bneigher wants to merge 1 commit into1c3t3a:mainfrom
bneigher wants to merge 1 commit into1c3t3a:mainfrom
Conversation
Add WebTransport as an optional transport for Engine.IO connections,
providing lower latency communication via HTTP/3 + QUIC.
- Add wtransport dependency with optional webtransport feature
- Create WebTransportTransport implementing AsyncTransport trait
- Add WebTransport variants to AsyncTransportType enum
- Add build_webtransport() and build_webtransport_with_upgrade() to ClientBuilder
- Add WebTransport-specific error types
WebTransport offers several advantages over WebSocket:
- Lower latency via QUIC's 0-RTT connection establishment
- Support for unreliable datagrams (useful for audio/video)
- Multiplexed streams without head-of-line blocking
Usage:
```rust
let client = ClientBuilder::new(url)
.build_webtransport()
.await?;
```
65c2b4f to
12a9308
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds WebTransport as an optional transport for Engine.IO connections, providing lower latency communication via HTTP/3 + QUIC.
Changes
wtransportdependency with optionalwebtransportfeatureWebTransportTransportimplementingAsyncTransporttraitAsyncTransportTypeenumbuild_webtransport()andbuild_webtransport_with_upgrade()toClientBuilderWhy WebTransport?
WebTransport offers several advantages over WebSocket:
Usage
Test plan
cargo build -p rust_engineio --features webtransport#[ignore]- require server)