From cff531ebe52a673eaf164602fdd0f5b2c94913a8 Mon Sep 17 00:00:00 2001 From: Schnitzel Date: Tue, 15 Jan 2019 00:06:08 -0600 Subject: [PATCH] support for secure websockets --- services/ui/src/lib/ApiConnection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/ui/src/lib/ApiConnection.js b/services/ui/src/lib/ApiConnection.js index c2f07f787d..069ba6a9da 100644 --- a/services/ui/src/lib/ApiConnection.js +++ b/services/ui/src/lib/ApiConnection.js @@ -28,7 +28,7 @@ const ApiConnection = ({ children }) => }) const wsLink = new WebSocketLink({ - uri: publicRuntimeConfig.GRAPHQL_API.replace(/https?/, 'ws'), + uri: publicRuntimeConfig.GRAPHQL_API.replace(/https/, 'wss').replace(/http/, 'ws'), options: { reconnect: true, connectionParams: {