mirror of
https://github.com/waku-org/js-waku.git
synced 2025-01-11 13:04:41 +00:00
817 B
817 B
Received and Send messages using Waku Relay
Waku Relay is a gossip protocol that enables you to send and receive messages. You can find Waku Relay's specifications on Vac RFC.
Before starting, you need to choose a Content Topic for your dApp. Check out the choose a content topic guide to learn more about content topics.
For the purpose of this guide, we are using a unique content topic: /relay-guide/1/chat/proto
.
Installation
You can install js-waku using your favorite package manager:
npm install js-waku
Create Waku instance
In order to interact with the Waku network, you first need a Waku instance:
import { Waku } from 'js-waku';
const wakuNode = await Waku.create();