fix: Don't hardcode websocket path
This commit is contained in:
parent
db5da6801b
commit
6114f69a50
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ export function Menu(): React.JSX.Element {
|
|||
<button
|
||||
disabled={!validSettings}
|
||||
onClick={() => {
|
||||
let socket = new WebSocket(`ws://localhost:8000/room/${roomName}?player_name=${playerName}`);
|
||||
let socket = new WebSocket(`/room/${roomName}?player_name=${playerName}`);
|
||||
socket.addEventListener("message", (event) => {
|
||||
const input: ServerToClientMessage = JSON.parse(event.data);
|
||||
if (input.type == "RoomChange") {
|
||||
|
|
Loading…
Reference in a new issue