MAKS\AmqpAgent\RPC\ClientEndpoint::call
Sends the passed request to the server using the passed queue.
Alias for `self::request()`.
Signature
public function call(string|AMQPMessage
        $request,
            [string
        $queueName = NULL] )
            
        Parameters
- $request— object
- The request body or an `AMQPMessage` instance.
 
- $queueName— string
- [optional] The name of queue to send through.
 
Returns
- string
- The response body.
Errors/Exceptions
- 
            RPCEndpointException
- If the client is not connected yet or if request Correlation ID does not match the one of the response.
Defined by Interface
Test Coverage
Information
- Coverage: 1/1 Lines (100%)
- Tests: 1
- Passed: 1 (100%)
Tests
- [ PASSED ] — MAKS\AmqpAgent\Tests\RPC\ClientEndpointTest::testRequestMethodViaAliasMethodCall