code: def on_message(self, message):
          
          message = ObjectDict(escape.json_decode(message))
          if message.command == 'hello':
              handshake = {
                  'command': 'hello',
                  'protocols': [
                      'http://livereload.com/protocols/official-7',
                  ],
                  'serverName': 'livereload-tornado',
              }
              self.send_message(handshake)
  
          if message.command == 'info' and 'url' in message:
              logger.info('Browser Connected: %s' % message.url)
              LiveReloadHandler.waiters.add(self)
docs: Handshake with livereload.js
  
          1. client send 'hello'
          2. server reply 'hello'
          3. client send 'info'