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