From 0346b94250e44ebf31fd7424fe7ca5f7eebb8940 Mon Sep 17 00:00:00 2001 From: Felicio Mununga Date: Thu, 17 Nov 2022 02:47:57 +0100 Subject: [PATCH] specify protocols in waitForRemotePeer --- packages/status-js/src/client/client.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/status-js/src/client/client.ts b/packages/status-js/src/client/client.ts index b5b3af9..3caa9ac 100644 --- a/packages/status-js/src/client/client.ts +++ b/packages/status-js/src/client/client.ts @@ -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[] = []