[go: up one dir, main page]

Skip to content

Commit

Permalink
docs: add note about webtransport only supporting dial
Browse files Browse the repository at this point in the history
This adds a note at the top of the WebTransport `README.md` to remind people of the fact that currently, the WebTransport implementation in js-libp2p only supports dialing out to other nodes and does not actually support listening for incoming dials because js-libp2p depends on Node JS and QUIC support has not landed in Node JS yet.

Related: libp2p#2371
  • Loading branch information
Stijn de Witt committed Feb 11, 2024
1 parent a2fb80a commit 652830a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/transport-webtransport/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@

A [libp2p transport](https://docs.libp2p.io/concepts/transports/overview/) based on [WebTransport](https://www.w3.org/TR/webtransport/).

>
> ⚠️ **Note**
>
> This WebTransport implementation currently only allows dialing to other
> nodes. It does not yet allow listening for incoming dials. This feature
> requires QUIC support to land in Node JS first.
>
> QUIC support in Node JS is actively being worked on.
> You can keep an eye on the progress by watching the
> [related issues on the Node JS issue tracker](https://github.com/nodejs/node/labels/quic)
>
## Example

```js
Expand Down

0 comments on commit 652830a

Please sign in to comment.