go-waku/examples/basic2
Prem Chaitanya Prathi 34de2941c7
Feat/peer manager (#596)
* chore: refactor existing code into peer maanger package

* feat: move peer connection related code into peer manager

* feat: in relay peer connection pruning

* feat: add max-connections CLI flag and limit outRelayPeers based on max-connections #621

* tested both in and out relay connection limits

Co-authored-by: richΛrd <info@richardramos.me>

* Review comment, use context to pause connectivity loop during node shutdown.

Co-authored-by: richΛrd <info@richardramos.me>

* address review comments


---------

Co-authored-by: richΛrd <info@richardramos.me>
2023-08-03 21:51:15 +05:30
..
build basic2 example 2021-04-04 15:33:21 -04:00
Makefile basic2 example 2021-04-04 15:33:21 -04:00
README.md basic2 example 2021-04-04 15:33:21 -04:00
go.mod Feat/peer manager (#596) 2023-08-03 21:51:15 +05:30
go.sum Feat/peer manager (#596) 2023-08-03 21:51:15 +05:30
main.go fix: examples 2023-05-08 14:14:53 -04:00

README.md

Using the basic2 application

Background

The basic2 application is a basic example app that demonstrates how to subscribe to and publish messages

Preparation

make

Basic application usage

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

./build/basic2

The app will send a "Hello world!" through the wakurelay protocol every 2 seconds and display it on the terminal as soon as it receives the message