I'm writing a lightning page that allows two players to remotely play chess through the same lightning page. The page uses the aura framework.
For what I've already implemented, the
Game__c object has two lookup fields to a user- one for each player- and only lets the correct player move a piece on their turn. Moreover, when the page loads, it loads the correct board position.
However, when a player moves a piece, the board does not update on their opponent's screen- the opponent has to refresh to see the update.
How can I make the board update in as soon as the active player makes their move?