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 Jul 28, 2023
1 parent 0f7ed73 commit 6b8479e
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 6b8479e

Please sign in to comment.