code: def clock(rpc):
      
  
      while True:
          yield from rpc.notify('clock', str(datetime.datetime.now()))
          yield from asyncio.sleep(1)
docs: This task runs forever and notifies all clients subscribed to
      'clock' once a second.