Python Activemq 发送消息,并解决总是BytesM

2019-11-11  本文已影响0人  杰x6770

一、环境

$ python3 --version
Python 3.5.3

二、准备工作

<transportConnector name="stomp" uri="stomp://0.0.0.0:61613"/>

三、复现

conn.send(destination="/topic/testTopic", body="your message !")
conn.send(destination="/topic/testTopic", body="your message !", headers={
  "amq-msg-type": "text",
})
上一篇下一篇

猜你喜欢

热点阅读