go-waku/examples/peer_events
Richard Ramos 1991a54d64 refactor: connectedness
Uses libp2p network notifier to determine when a peer connects or disconnects, as well as using the host network peerstore instead of managing out own separate peer map
2021-10-06 14:07:46 -04:00
..
Makefile Add peer connectivity notifications 2021-06-29 16:35:01 +03:00
README.md Add peer connectivity notifications 2021-06-29 16:35:01 +03:00
go.mod fix: add context parameter to peer dial (#59) 2021-10-01 06:32:15 -04:00
go.sum refactor: connectedness 2021-10-06 14:07:46 -04:00
main.go refactor: add peers before starting 2021-10-04 22:16:24 -04:00

README.md

Using the peer_events application

Background

The peer_events application is a basic example app that demonstrates how peer event handling works in go-waku

Preparation

make

Basic application usage

To start the peer_events application run the following from the project directory

./build/peer_events

The app will run the following nodes sequentially:

  • relayNode1 and relayNode2
  • relayNode2 is stopped, and relayNode3 is started
  • relayNode3 is stopped, and storeNode is started