Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://w3c.github.io/webtransport/

WebTransport is a web API for flexible data transport
https://w3c.github.io/webtransport/

Last synced: 24 days ago
JSON representation

WebTransport is a web API for flexible data transport

Awesome Lists containing this project

README

        

# WebTransport

API that allows web applications to establish interactive, bidirectional, multiplexed network connections

It fills gaps in the web platform:
- Lack of UDP-like networking API
- Lack of WebSocket-like API without head-of-line blocking

It provides:
- Reliable streams
- Unreliable datagrams
- Encryption and congestion control
- An origin-based security model
- Bindings for QUIC
- Multiplexing with existing HTTP/3 connections
- Flexible API that can be extended to other protocols, such as TCP fallback and p2p
- Ability to change transport without changing application code

It's great for:
- sending or receiving high-frequency, small messages that don't need to be reliable (like game state)
- sending or receiving low-latency media
- transferring files

See the [explainer](https://github.com/wicg/web-transport/blob/master/explainer.md) for more info.

See the [proposed spec](https://wicg.github.io/web-transport/).

# Samples

Basic Echo
- Live: https://webrtc.internaut.com/wt/
- Source: https://github.com/w3c/webtransport/tree/main/samples/echo

WebCodecs Echo
- Live: https://webrtc.internaut.com/wc/wtSender10/
- Source: https://github.com/aboba/wt-demo
- PR: https://github.com/w3c/webtransport/pull/430