code: def make_command(command: Callable) -> Callable:
      
      @wraps(command)
      def actualcommand(self, *args, **kwds):  # pylint: disable=missing-docstring
          data = command(self, *args, **kwds)
          name = command.__name__[3:]
          signal = '{uuid}{sep}{event}'.format(
              uuid=self._uuid,  # pylint: disable=protected-access
              sep=SEPARATOR,
              event=name
          )
          if flask.has_request_context():
              emit(signal, {'data': pack(data)})
          else:
              sio = flask.current_app.extensions['socketio']
              sio.emit(signal, {'data': pack(data)})
          eventlet.sleep()
  
      return actualcommand
docs: Create an command from a method signature.