atheriel / longears

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

Publishing raw data #3

Closed dselivanov closed 4 years ago

dselivanov commented 4 years ago

I'm trying to publish message which consist of raw data (in my case messagepack, but as an example i'm just sending byte encoded string).

library(longears)
con = amqp_connect()
msg = charToRaw("test")
amqp_publish(con, msg, exchange = "", routing_key = "test")

However somewhere internally it got encoded into "NA".

Screen Shot 2020-02-04 at 19 50 39
dselivanov commented 4 years ago

Working in this - will submit PR soon.

atheriel commented 4 years ago

Yep, this is absolutely needed. I thought I'd implemented it long ago, but clearly that never got merged.