mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
AAE-20808 Fixed websocket protocol (#10433)
* AAE-20808 Fixed websocket protocol * AAE-20808 Removed comments
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user