pangea-poker icon indicating copy to clipboard operation
pangea-poker copied to clipboard

Handling the status_info message

Open sg777 opened this issue 5 years ago • 3 comments

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 avatar Jan 14 '20 13:01 sg777

@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?

norbertdragan avatar Jan 27 '20 03:01 norbertdragan

Is there a way to get this status_info message by sending a message to the dcv?

norbertdragan avatar Jan 27 '20 03:01 norbertdragan

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.

sg777 avatar Jan 27 '20 13:01 sg777