Alex Potsides a1220d22f5
fix: time out slow reads (#1227)
There are a few places in the codebase where we send/receive data from the network without timeouts/abort controllers which means the user has to wait for the underlying socket to timeout which can take a long time depending on the platform, if at all.

This change ensures we can time out while running identify (both flavours), ping and fetch and adds tests to ensure there are no regressions.
2022-05-25 18:15:21 +01:00
..
2022-03-28 14:30:27 +01:00
2022-03-28 14:30:27 +01:00
2022-05-16 10:07:32 +01: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