diff --git a/packages/frontend-shared/src/graphql/urqlClient.ts b/packages/frontend-shared/src/graphql/urqlClient.ts index 2999df6b4cd..e8d9339936d 100644 --- a/packages/frontend-shared/src/graphql/urqlClient.ts +++ b/packages/frontend-shared/src/graphql/urqlClient.ts @@ -236,7 +236,7 @@ function getSocketSource (config: UrqlClientConfig) { // http: -> ws: & https: -> wss: const protocol = window.location.protocol.replace('http', 'ws') const wsUrl = config.target === 'launchpad' - ? `ws://${window.location.host}/__launchpad/graphql-ws` + ? `${protocol}//${window.location.host}/__launchpad/graphql-ws` : `${protocol}//${window.location.host}${config.socketIoRoute}-graphql` return createWsClient({