Skip to content

Commit

Permalink
fix: WebSocketFactoryService returns always 'ws:'
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfaron committed Feb 23, 2024
1 parent 9a3bc6d commit 0d5728d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/web-socket-factory.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class WebSocketFactoryService {
*/
public create(url?: string): WebSocketSubject<WebSocketData> {
if (!url) {
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
const protocol = 'ws:'; // window.location.protocol === 'https:' ? 'wss:' : 'ws:';
url = `${protocol}//${window.location.host}/websocket`;
}

Expand Down

0 comments on commit 0d5728d

Please sign in to comment.