def start(self):
def _heartbeat():<EOL><INDENT>if not self._client.lifecycle.is_live:<EOL><INDENT>return<EOL><DEDENT>self._heartbeat()<EOL>self._heartbeat_timer = self._client.reactor.add_timer(self._heartbeat_interval, _heartbeat)<EOL><DEDENT>self._heartbeat_timer = self._client.reactor.add_timer(self._heartbeat_interval, _heartbeat)<EOL>
Starts sending periodic HeartBeat operations.