Skip to content

[FEATURE] WebTransport Support #2

@sanjomo

Description

@sanjomo

Description

Add support for the WebTransport protocol (application-level) in netty-socketio, expanding transport options beyond WebSocket.

Use Case

Modern browsers and networks increasingly support WebTransport, which offers low-latency, full-duplex, multiplexed streams over HTTP/3.
This would benefit use cases such as:

  • Real-time multiplayer games
  • Collaborative applications
  • Low-latency streaming
  • Scenarios where WebTransport is preferred over WebSocket
  • Environments already using QUIC/HTTP3 stacks (Netty supports this)

Proposed Solution

  • Integrate a Java/WebTransport implementation or build on Netty’s HTTP/3/QUIC support.
  • Add connection negotiation logic where the client can request WebTransport, falling back to WebSocket when not available.
  • Provide a clean API to use WebTransport similarly to existing transports.
  • Maintain full backward compatibility.
  • Add tests, examples, and documentation on how to use WebTransport within netty-socketio projects.

Impact

  • Module: core (or a dedicated transport-webtransport module)
  • Breaking Change: No
  • Backward Compatibility: Yes — WebSockets remain the fallback when WebTransport is unavailable

Additional Context

Original request: NeatGuyCoding/netty-socketio#40
Adding WebTransport support positions the library for modern real-time communication needs. Mockups and usage examples can be added once implementation design is settled.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions