@property<EOL><INDENT>def latency(self):<DEDENT>
heartbeat = self._keep_alive<EOL>return float('<STR_LIT>') if heartbeat is None else heartbeat.latency<EOL>
:class:`float`: Measures latency between a HEARTBEAT and a HEARTBEAT_ACK in seconds.