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; }