docs: def log_handler(level: str, message: str) -> None:
      """Handle logs from client (browser)."""
      message = 'JS: ' + str(message)
      if level == 'error':
          logger.error(message)
      elif level == 'warn':
          logger.warning(message)
      elif level == 'info':
          logger.info(message)
      elif level == 'debug':
          logger.debug(message)