ezmobius/nanite

How to initiate a sync request?

leomayleomay opened this issue · 1 comments

I'm working on a test for our Nanite agent, but the request initiated by Nanite.request are all async, which means, i can get nothing back from my agent before the test finishes.

Can I initiate a sync request? Thank you

There is no synchronous request in Nanite due to the asynchronous nature of the broker in between. Your best bet might be to try moqueue which patches the amqp gem to use a basic in-memory queue instead of a full-blown broker like RabbitMQ.