specify protocols in waitForRemotePeer

This commit is contained in:
Felicio Mununga 2022-11-17 02:47:57 +01:00
parent a2550b61d7
commit d35c311096
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
1 changed files with 5 additions and 1 deletions

View File

@ -111,7 +111,11 @@ class Client {
},
})
await waku.start()
await waitForRemotePeer(waku, [Protocols.Store], 10 * 1000)
await waitForRemotePeer(
waku,
[Protocols.Store, Protocols.Filter, Protocols.LightPush],
10 * 1000
)
const wakuDisconnectionTimer = setInterval(async () => {
const connectionsToClose: Promise<void>[] = []