waku-org / js-waku

JavaScript implementation of Waku v2
https://js.waku.org
Apache License 2.0
168 stars 42 forks source link

Integrate WebTransport #697

Open D4nte opened 2 years ago

D4nte commented 2 years ago

WebTransport can enable a browser node to connect to a remote server node using self-signed certificates. It is an API offering low-latency, bidirectional, client-server messaging. https://web.dev/webtransport/

Once this is implemented in libp2p, we should integrating it as an alternative to WebSocket.

See https://github.com/libp2p/specs/pull/404/files

fryorcraken commented 1 year ago

Stream API is now available: https://developer.chrome.com/articles/webtransport/#feedback

js library available: https://github.com/libp2p/js-libp2p-webtransport

@Menduist Are you aware of the status of WebTransport? Is it on the roadmap for nim-libp2p?

@richard-ramos what about go-libp2p?

I imagine there could be some performance and stability gain for using it.

Menduist commented 1 year ago

AFAIK, it doesn't bring much improvement over webrtc-browser-to-server (https://github.com/libp2p/specs/tree/master/webrtc) and is quite far down the nim-libp2p roadmap

richard-ramos commented 1 year ago

I added webtransport to the list of default transports supported by go-waku in here https://github.com/waku-org/go-waku/pull/513