feat(ui): Websocket
Started implementing functionality to Websocket.
This commit is contained in:
@@ -5,6 +5,19 @@ 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 handleKickPlayer(playerId) {
|
||||
// TODO needs implementation
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user