Skip to content

Commit

Permalink
use lazy for websocket connections
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood committed May 21, 2024
1 parent e0add0c commit d57ee1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/ApiConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const ApiConnection = ({ children }) => (
const wsLink = new WebSocketLink({
uri: publicRuntimeConfig.GRAPHQL_API.replace(/https/, 'wss').replace(/http/, 'ws'),
options: {
lazy: true,
reconnect: true,
connectionParams: {
authToken: auth.apiToken,
Expand Down

0 comments on commit d57ee1c

Please sign in to comment.