Alex Potsides de30c2cec7
feat!: limit protocol streams per-connection (#1255)
* feat: limit protocol streams per-connection

Uses the `maxInboundStreams` and `maxOutboundStreams` of the `registrar.handle`
opts to limit the number of concurrent streams open on each connection
on a per-protocol basis.

Both values default to 1 so some tuning will be necessary to set
appropriate values for some protocols.

* chore: make error codes consistent

* chore: fix up examples
2022-06-17 15:46:31 +02:00
..
2022-03-28 14:30:27 +01:00
2022-03-28 14:30:27 +01:00

js-libp2p Examples and Tutorials

In this folder, you can find a variety of examples to help you get started in using js-libp2p, in Node.js and in the Browser. Every example has a specific purpose and some incorporate a full tutorial that you can follow through, helping you expand your knowledge about libp2p and p2p networks in general.

Let us know if you find any issues, or if you want to contribute and add a new tutorial, feel free to submit a PR, thank you!

Understanding how libp2p works

Other examples

For go-libp2p examples, check out https://github.com/libp2p/go-libp2p-examples#examples-and-tutorials