You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browser peers (js-libp2p in the browser, the bulk of consumer wallets) cannot use raw TCP or QUIC because browsers don't expose those APIs to JS. Every libp2p-in-browser peer reaches the network through one of three transports: WebSocket (/ws, /wss), WebTransport (/quic-v1/webtransport), or WebRTC (/webrtc-direct and /webrtc via signalling).
Browser-friendly (no signalling server, certificate verification via SDP fingerprint matching the libp2p peer key)
Pure-Zig implementation is a multi-month effort — DTLS 1.2 + SCTP + ICE; vendoring a Zig WebRTC stack (if one exists) is the realistic path. Otherwise gate behind libc + a C lib (regresses feat: Noise XX security upgrade #36 purity claim — discuss before pursuing).
WebTransport (/quic-v1/webtransport)
Builds on the QUIC stack already in zquic
Extension on top of HTTP/3 — needs HTTP/3 server framing
Pure-Zig viable; smaller than WebRTC
Recommended order
WebSocket + WSS first — straightforward HTTP upgrade, reuses existing TCP+TLS+Noise+muxer chain. Unblocks js-libp2p browser interop for many testnets.
WebTransport second — extends QUIC stack already in place.
WebRTC last — biggest implementation cost, partially overlaps with browser-only use cases.
Acceptance
WebSocket round-trip with js-libp2p in a browser tab.
Why
Browser peers (js-libp2p in the browser, the bulk of consumer wallets) cannot use raw TCP or QUIC because browsers don't expose those APIs to JS. Every libp2p-in-browser peer reaches the network through one of three transports: WebSocket (
/ws,/wss), WebTransport (/quic-v1/webtransport), or WebRTC (/webrtc-directand/webrtcvia signalling).Tracking: #80
Sub-features
WebSocket / Secure WebSocket (
/ws,/wss)/ip4/N/tcp/N/wsor/ip4/N/tcp/N/tls/sni/<host>/wsGET / HTTP/1.1\r\nUpgrade: websocket\r\n…)WebRTC (
/webrtc-direct)WebTransport (
/quic-v1/webtransport)Recommended order
Acceptance