diff --git a/src/apollo/apollo-client-hooks.js b/src/apollo/apollo-client-hooks.js index ec1c6b757..0750dfdd7 100644 --- a/src/apollo/apollo-client-hooks.js +++ b/src/apollo/apollo-client-hooks.js @@ -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 }