mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-03 09:50:47 +00:00
added deployment
This commit is contained in:
@@ -60,7 +60,8 @@ export class ClientGame {
|
||||
) { }
|
||||
|
||||
public joinLobby() {
|
||||
this.socket = new WebSocket(`ws://localhost:3000`)
|
||||
const wsHost = process.env.WEBSOCKET_URL || window.location.host;
|
||||
this.socket = new WebSocket(`ws://${wsHost}`)
|
||||
this.socket.onopen = () => {
|
||||
console.log('Connected to game server!');
|
||||
this.socket.send(
|
||||
|
||||
Reference in New Issue
Block a user