pangea-poker
pangea-poker copied to clipboard
Handling the status_info message
The heartbeat protocol has been implemented in the backend, what it does it for every 30 seconds it pushes the status of all the nodes in the game to the respective GUI's from the corresponding playing backends.
The format of the message is as follows:
{
"method": "status_info",
"bvv_status": 1,
"no_of_players": 2,
"players_status": [1, 1]
}
In the above JSON message, in the player_status
array 1
represents the player is active and 0
means inactive or disconnected.
@sg777 It seems like the player nodes do not receive "method": "status_info"
messages using chips-blockchain/bet@1ec5ee6.
Instead, they receive "method": "join_info"
messages, which I could not find documentation about.
What should be the behavior here?
Is there a way to get this status_info
message by sending a message to the dcv
?
for the moment this has been disabled, as I see lot of traffic is getting generated because of this. Will need to find an efficient approach like triggering from the GUI something like that.