MAKS\AmqpAgent\RPC\ServerEndpointInterface::respond
Listens on requests coming via the passed queue and processes them with the passed callback.
Alias for `self::respond()`.
Signature
public function respond([callable
        $callback = NULL,
            [string
        $queueName = NULL]] )
            
        Parameters
- $callback— callable
- [optional] The callback to process the request. This callback will be passed an `AMQPMessage` and must return a string.
 
- $queueName— string
- [optional] The name of the queue to listen on.
 
Returns
- string
- The last processed request.