From 48e9d56453b2908ab7dd1737b128aaf8b53b564c Mon Sep 17 00:00:00 2001 From: Ehsan Rezaei Date: Tue, 26 Nov 2024 21:47:17 +0100 Subject: [PATCH] AAE-20808 Fixed websocket protocol (#10433) * AAE-20808 Fixed websocket protocol * AAE-20808 Removed comments --- .../src/lib/services/web-socket.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/process-services-cloud/src/lib/services/web-socket.service.ts b/lib/process-services-cloud/src/lib/services/web-socket.service.ts index 4299328552..0b10f54925 100644 --- a/lib/process-services-cloud/src/lib/services/web-socket.service.ts +++ b/lib/process-services-cloud/src/lib/services/web-socket.service.ts @@ -91,7 +91,8 @@ export class WebSocketService { private createWsUrl(serviceUrl: string): string { const url = new URL(serviceUrl, this.host); - url.protocol = url.protocol === 'https' ? 'wss' : 'ws'; + const protocol = url.protocol === 'https:' ? 'wss:' : 'ws:'; + url.protocol = protocol; return url.href; }