p2pfl.communication.commands.message.heartbeat_command moduleΒΆ

Heartbeat command.

class p2pfl.communication.commands.message.heartbeat_command.HeartbeatCommand(heartbeat)[source]ΒΆ

Bases: Command

Heartbeat command.

execute(source, round, time=None, **kwargs)[source]ΒΆ

Execute the command.

Parameters:
  • source (str) – The source of the command.

  • round (int) – The round of the command.

  • time (Optional[str]) – The time of the command.

  • **kwargs – The command arguments.

Return type:

None

static get_name()[source]ΒΆ

Get the command name.

Return type:

str