original_docstring: Decorator that checks if WS message is empty.
docstring: Decorator that checks if WS message is empty.
docstring_tokens: Decorator that checks if WS message is empty .
code: def no_msg(handler):
      """Decorator that checks if WS message is empty."""
  
      @functools.wraps(handler)
      def wrapped_view(msg):
          if msg is not None:
              current_app.logger.error(
                  f'{request.sid}: {request.event["message"]}: no message is expected')
              return None
  
          return handler(msg)
  
      return wrapped_view
code_tokens: def no_msg ( handler ) : @ functools . wraps ( handler ) def wrapped_view ( msg ) : if msg is not None : current_app . logger . error ( f'{request.sid}: {request.event["message"]}: no message is expected' ) return None return handler ( msg ) return wrapped_view
short_docstring: Decorator that checks if WS message is empty.
short_docstring_tokens: Decorator that checks if WS message is empty .
comment: """Decorator that checks if WS message is empty."""