Fixed subscriptions authorization
This commit is contained in:
@@ -50,11 +50,12 @@ 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}`
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user