Implement send_heartbeat function on SwarmNetwork.