js-libp2p icon indicating copy to clipboard operation
js-libp2p copied to clipboard

feat: add webtransport listener

Open achingbrain opened this issue 1 year ago • 0 comments

Adds a transport listener to @libp2p/webtransport for Node.js

In draft for now, there's some very strange behaviour around closing stream writers in browsers.

A lot has changed with @fails-components/webtransport since we last looked at it.

Notably it's been rewritten internally and no longer uses it's own event loop which is a marked improvement on the user experience.

Unfortunately some tests that were passing before now fail so there's some investigation to do.

Refs #2371

TODO:

  • [x] https://issues.chromium.org/issues/326887753
  • [x] https://github.com/fails-components/webtransport/issues/253
  • [x] https://github.com/fails-components/webtransport/issues/258
  • [x] ~~https://github.com/fails-components/webtransport/issues/259~~
  • [x] ~~https://github.com/fails-components/webtransport/pull/280~~
  • [ ] https://github.com/fails-components/webtransport/issues/213

Change checklist

  • [ ] I have performed a self-review of my own code
  • [ ] I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • [ ] I have added tests that prove my fix is effective or that my feature works

achingbrain avatar Feb 23 '24 18:02 achingbrain