fix(ui): Websocket

Fixed startGame to be correctly implemented
This commit is contained in:
LQ63
2025-11-26 09:52:16 +01:00
committed by Janis
parent e0f16a224d
commit 6402df43b1
5 changed files with 6 additions and 31 deletions

View File

@@ -5,18 +5,8 @@ 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
};
sendEvent("Start Game", payload)
function startGame() {
sendEvent("Start Game")
}
function handleKickPlayer(playerId) {
// TODO needs implementation