Merge pull request #1228 from waku-org/fix/keep-alive-payload

This commit is contained in:
fryorcraken.eth 2023-03-14 11:20:35 +11:00 committed by GitHub
commit dbaf89831f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ export class KeepAliveManager {
const interval = setInterval(() => { const interval = setInterval(() => {
log("Sending Waku Relay ping message"); log("Sending Waku Relay ping message");
relay relay
.send(encoder, { payload: new Uint8Array() }) .send(encoder, { payload: new Uint8Array([1]) })
.catch((e) => log("Failed to send relay ping", e)); .catch((e) => log("Failed to send relay ping", e));
}, relayPeriodSecs * 1000); }, relayPeriodSecs * 1000);
this.relayKeepAliveTimers.set(peerId, interval); this.relayKeepAliveTimers.set(peerId, interval);