@asyncio.coroutine<EOL><INDENT>def _start_loop(self, websocket, event_handler):<DEDENT>
log.debug('<STR_LIT>')<EOL>while True:<EOL><INDENT>try:<EOL><INDENT>yield from asyncio.wait_for(<EOL>self._wait_for_message(websocket, event_handler),<EOL>timeout=self.options['<STR_LIT>']<EOL>)<EOL><DEDENT>except asyncio.TimeoutError:<EOL><INDENT>yield from websocket.pong()<EOL>log.debug("<STR_LIT>")<EOL>continue<EOL><DEDENT><DEDENT>
We will listen for websockets events, sending a heartbeat/pong everytime
we react a TimeoutError. If we don't the webserver would close the idle connection,
forcing us to reconnect.