Skip to content

Commit

Permalink
fix: use wss gql url (#1793)
Browse files Browse the repository at this point in the history
  • Loading branch information
pugakn authored Nov 8, 2022
1 parent 6725f05 commit 699e346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apollo/apollo-client-hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const httpLink = new HttpLink({

// Create the subscription websocket link
const wsLink = new WebSocketLink({
uri: process.env.GRAPHQL_SUBSCRIPTIONS_URI || 'ws://alpha-stts.tekit.io/graphql',
uri: process.env.GRAPHQL_URI.replace('https', 'wss') || 'wss://alpha-stts.tekit.io/graphql',
options: {
reconnect: true
}
Expand Down

0 comments on commit 699e346

Please sign in to comment.