Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How send RPC message #101

Closed
narimanam opened this issue Jan 27, 2020 · 2 comments · Fixed by #102
Closed

How send RPC message #101

narimanam opened this issue Jan 27, 2020 · 2 comments · Fixed by #102

Comments

@narimanam
Copy link

hi, thanks for this library.
I want to use AmqpConnection for call rpc. I can use publish function for broadcast messages,but for RPC I don't know how to do that. can you explain more about send messages

@WonderPanda
Copy link
Collaborator

Hey @nariman-amani thanks for your interest in @golevelup

I've added a Table of Contents and new sections to the RabbitMQ docs to explain this better

https://github.com/golevelup/nestjs/tree/master/packages/rabbitmq#sending-messages

@kdi-1
Copy link

kdi-1 commented Jan 28, 2020

You can see this in test

const response = await amqpConnection.request({

const response = await amqpConnection.request({ exchange: 'exchange1', routingKey: 'rpc', payload: { request: 'val', }, });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants