chore: print log when sending relay ping

This commit is contained in:
fryorcraken.eth 2022-08-31 13:14:52 +10:00
parent f6bb9b2fcd
commit 482a75fddc
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 1 additions and 0 deletions

View File

@ -231,6 +231,7 @@ export class Waku {
if (relayPeriodSecs !== 0) { if (relayPeriodSecs !== 0) {
this.relayKeepAliveTimers[peerIdStr] = setInterval(() => { this.relayKeepAliveTimers[peerIdStr] = setInterval(() => {
log("Sending Waku Relay ping message");
WakuMessage.fromBytes(new Uint8Array(), RelayPingContentTopic).then( WakuMessage.fromBytes(new Uint8Array(), RelayPingContentTopic).then(
(wakuMsg) => this.relay.send(wakuMsg) (wakuMsg) => this.relay.send(wakuMsg)
); );