Perform an RPC call: publish a message and wait for the response.
The queue name (routing key) of the RPC server
The request body
Optional properties and timeout
Optionaltimeout?: numberTimeout in milliseconds. Rejects with an error if no response is received within this time.
The reply AMQPMessage
Close the dedicated channel, reject any pending calls, and remove this client from the session's reconnect recovery.
Reusable RPC client using the direct reply-to feature.
Example