code: def add_websocket_route(
          self,
          handler,
          uri,
          host=None,
          strict_slashes=None,
          subprotocols=None,
          name=None,
      ):
          
          if strict_slashes is None:
              strict_slashes = self.strict_slashes
  
          return self.websocket(
              uri,
              host=host,
              strict_slashes=strict_slashes,
              subprotocols=subprotocols,
              name=name,
          )(handler)
docs: A helper method to register a function as a websocket route.
  
          :param handler: a callable function or instance of a class
                          that can handle the websocket request
          :param host: Host IP or FQDN details
          :param uri: URL path that will be mapped to the websocket
                      handler
          :param strict_slashes: If the API endpoint needs to terminate
                  with a "/" or not
          :param subprotocols: Subprotocols to be used with websocket
                  handshake
          :param name: A unique name assigned to the URL so that it can
                  be used with :func:`url_for`
          :return: Objected decorated by :func:`websocket`