Skip to content

Commit

Permalink
AAE-20808 Fixed websocket protocol (#10433)
Browse files Browse the repository at this point in the history
* AAE-20808 Fixed websocket protocol

* AAE-20808 Removed comments
  • Loading branch information
ehsan-2019 authored Nov 26, 2024
1 parent 2d3c684 commit 48e9d56
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 48e9d56

Please sign in to comment.