fix(ui): Websocket

Fixed startGame to be correctly implemented
This commit is contained in:
LQ63
2025-11-26 09:52:16 +01:00
parent 496ee03583
commit f48eb1396e
5 changed files with 7 additions and 32 deletions

View File

@@ -5,17 +5,7 @@ function handlePlayCard(card, dog) {
function handleSkipDogLife(button) {
// TODO needs implementation
}
function startGame(gameId, userId, username, userpasswordhash, userinternalid) {
const userpayload = {
internalId: userinternalid,
id: userId,
name: username,
passwordHash: userpasswordhash
}
const payload = {
gameId: gameId,
user: userpayload
};
console.log("CLICKED START GAME, SENDING EVENT..." + payload)
sendEvent("Start Game", payload)
function startGame() {
console.log("CLICKED START GAME, SENDING EVENT...")
sendEvent("Start Game")
}