set pingKeepAlive to aid in connection recovery

This commit is contained in:
Felicio Mununga 2022-11-16 23:45:42 +01:00
parent 2d363453a3
commit c8cd9d45a9
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
1 changed files with 2 additions and 1 deletions

View File

@ -96,7 +96,8 @@ class Client {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore // @ts-ignore
emitSelf: true, emitSelf: true,
relayKeepAlive: 15, pingKeepAlive: 15,
relayKeepAlive: 0,
libp2p: { libp2p: {
peerDiscovery: [ peerDiscovery: [
/** /**