mirror of https://github.com/status-im/js-waku.git
Add comment
This commit is contained in:
parent
a8d922d19e
commit
b90b66c5f6
|
@ -79,6 +79,7 @@ export default function App() {
|
||||||
let [stateWaku, setWaku] = useState<Waku | undefined>(undefined);
|
let [stateWaku, setWaku] = useState<Waku | undefined>(undefined);
|
||||||
let [nick, setNick] = useState<string>(generate());
|
let [nick, setNick] = useState<string>(generate());
|
||||||
|
|
||||||
|
// Waku: Start, process messages, send messages
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const handleRelayMessage = (wakuMsg: WakuMessage) => {
|
const handleRelayMessage = (wakuMsg: WakuMessage) => {
|
||||||
console.log('Message received: ', wakuMsg);
|
console.log('Message received: ', wakuMsg);
|
||||||
|
|
Loading…
Reference in New Issue