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}` } } }