code: def add_websocket(
              self,
              path: str,
              endpoint: Optional[str]=None,
              view_func: Optional[Callable]=None,
              defaults: Optional[dict]=None,
              host: Optional[str]=None,
              subdomain: Optional[str]=None,
              *,
              strict_slashes: bool=True,
      ) -> None:
          
          return self.add_url_rule(
              path, endpoint, view_func, {'GET'}, defaults=defaults, host=host, subdomain=subdomain,
              provide_automatic_options=False, is_websocket=True, strict_slashes=strict_slashes,
          )
docs: Add a websocket rule to the blueprint.
  
          This is designed to be used on the blueprint directly, and
          has the same arguments as
          :meth:`~quart.Quart.add_websocket`. An example usage,
  
          .. code-block:: python
  
              def route():
                  ...
  
              blueprint = Blueprint(__name__)
              blueprint.add_websocket('/', route)