From 699e3464b017b563f09c2bd161c55f99bf1fc186 Mon Sep 17 00:00:00 2001 From: Irving Puga Date: Tue, 8 Nov 2022 15:24:54 -0600 Subject: [PATCH] fix: use wss gql url (#1793) --- src/apollo/apollo-client-hooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }