Awesome
@libp2p/example-chat <!-- omit in toc -->
An example chat app using libp2p
Table of contents <!-- omit in toc -->
Setup
- Install example dependencies
$ npm install
- Open 2 terminal windows in the
./src
directory.
Running
- Run the listener in window 1,
node listener.js
- Run the dialer in window 2,
node dialer.js
- Wait until the two peers discover each other
- Type a message in either window and hit enter
- Tell yourself secrets to your hearts content!
Need help?
- Read the js-libp2p documentation
- Check out the js-libp2p API docs
- Check out the general libp2p documentation for tips, how-tos and more
- Read the libp2p specs
- Ask a question on the js-libp2p discussion board
License
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)
Contribution
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.