1 parent 75eb582 commit 41d8675Copy full SHA for 41d8675
1 file changed
client/js/managers/network-manager.js
@@ -10,10 +10,8 @@ export class NetworkManager {
10
}
11
12
getWebSocketUrl(serverAddress, path = '/game') {
13
- const isSecure = window.location.protocol === 'https:';
14
- const protocol = isSecure ? 'wss:' : 'ws:';
15
- const port = isSecure ? '' : ':8080';
16
- return `${protocol}//${serverAddress}${port}${path}`;
+ // For LAN games, always use ws:// and port 8080
+ return `ws://${serverAddress}:8080${path}`;
17
18
19
connectToLobby(serverAddress) {
0 commit comments