Fixed subscriptions authorization

This commit is contained in:
Andrew Bastin
2021-05-03 09:57:58 -04:00
parent 8713aa7fd3
commit ec57392424

View File

@@ -50,14 +50,15 @@ const wsLink = new WebSocketLink({
? "wss://api.hoppscotch.io/graphql" ? "wss://api.hoppscotch.io/graphql"
: "wss://api.hoppscotch.io/graphql", : "wss://api.hoppscotch.io/graphql",
options: { options: {
lazy: true,
reconnect: true,
timeout: 300,
connectionParams: () => { connectionParams: () => {
return { return {
headers: {
authorization: `Bearer ${authToken}` authorization: `Bearer ${authToken}`
} }
} }
} }
}
}); });
const splitLink = split( const splitLink = split(