Skip to content

Commit

Permalink
fix(frontend): soft code port for websocket (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaIng committed Nov 12, 2021
1 parent 30550c0 commit bc5bf51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
}
let proto = window.location.protocol == "https:" ? "wss" : "ws";
socket = new WebSocket(
`${proto}://${window.location.hostname}:8088/ws`
`${proto}://${window.location.hostname}:${window.location.port}/ws`
);
socket.onopen = socketOpenListener;
socket.onmessage = socketMessageListener;
Expand Down

0 comments on commit bc5bf51

Please sign in to comment.