atheriel / longears

The RabbitMQ client for R
https://atheriel.github.io/longears/
36 stars 9 forks source link

Consume messages in a Shiny application #22

Open mxmlnmrk opened 9 months ago

mxmlnmrk commented 9 months ago

First of all, thank you for this great package!

I've been trying different ways to implement a consumer in a R Shiny app, but haven't been able to figure out how to do it with amqp_consume() or amqp_consume_later() without running into problems.

In your documentation you mention that amqp_consume_later() is "primarily for use inside applications (especially Shiny applications)". However, I haven't been able to figure out how to make this work properly, and unfortunately I haven't seen any threads on stackoverflow or examples on github.

It would be a great help if you could expand the documentation, e.g. with a minimal working example.