From ec57392424326482852d86779e2b4a4e6b8031af Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Mon, 3 May 2021 09:57:58 -0400 Subject: [PATCH] Fixed subscriptions authorization --- helpers/apollo.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/helpers/apollo.ts b/helpers/apollo.ts index e1035fd7e..719b885ed 100644 --- a/helpers/apollo.ts +++ b/helpers/apollo.ts @@ -50,11 +50,12 @@ const wsLink = new WebSocketLink({ ? "wss://api.hoppscotch.io/graphql" : "wss://api.hoppscotch.io/graphql", options: { + lazy: true, + reconnect: true, + timeout: 300, connectionParams: () => { return { - headers: { - authorization: `Bearer ${authToken}` - } + authorization: `Bearer ${authToken}` } } }