An example echo app
- Install the modules from libp2p root,
npm install
andnpm run build
. - Open 2 terminal windows in the
./src
directory.
- Run the listener in window 1,
node listener.js
- Run the dialer in window 2,
node dialer.js
- You should see console logs showing the dial, and the received echo of hey
- If you look at the listener window, you will see it receiving the dial
Licensed under either of
- Apache 2.0, (LICENSE-APACHE / http://www.apache.org/licenses/LICENSE-2.0)
- MIT (LICENSE-MIT / http://opensource.org/licenses/MIT)
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.