Toy example to get a sense of how libp2p works. I've separated the example into pieces to make it clear how each part works. There are two binaries: one that works as a server and another as a client. Both communicate using the echo
protocol.
Mostly inspired by Getting started with go-libp2p and libp2p go example.
go build ./cmd/server/
go build ./cmd/client/
./server [PORT]
./client [PEER] [INPUT]