fix: update gameUsersConnectionInfo onGameMove

This commit is contained in:
Halit Aksoy 2022-08-01 22:38:03 +03:00
parent 88727c86d0
commit 9f9160eaf6

View File

@ -54,6 +54,7 @@ export class GameManager {
if (game) { if (game) {
try { try {
game.mancalaGame.moveByPlayerPit(userKey, gameMove.index); game.mancalaGame.moveByPlayerPit(userKey, gameMove.index);
game.gameUsersConnectionInfo = this.getGameUsersConnectionInfo(game);
this.rtmt.sendMessage(game.mancalaGame.player1Id, channel_on_game_update, game); this.rtmt.sendMessage(game.mancalaGame.player1Id, channel_on_game_update, game);
this.rtmt.sendMessage(game.mancalaGame.player2Id, channel_on_game_update, game); this.rtmt.sendMessage(game.mancalaGame.player2Id, channel_on_game_update, game);
if (game.mancalaGame.state == "ended") { if (game.mancalaGame.state == "ended") {