0

我知道 MQTT 客户端可以通过首先订阅“$SYS/client/reply-to”来获取他们的点对点(P2P)主题。这将返回客户端将订阅的 P2P 主题。但是,他们需要在消息体中传递这个 P2P 主题,让消息的订阅者以请求/回复模式回复。有没有办法减少在消息体中传递 P2P 主题的开销?我们可以使用 SEMP 获取 P2P 主题?

谢谢你。

4

1 回答 1

1

When using MQTT with Solace, the only way that a client can obtain its own P2P topic is by first subscribing to "$SYS/client/reply-to", as this will trigger Solace to send a message to that topic with the client's own P2P topic.

The P2P topic must be passed into the message body so that the receivers of the message know where to publish the reply. The receiver cannot retrieve the P2P topic belonging to the requester in any other way as it is has no awareness of the publisher, only the received message.

于 2016-06-16T19:12:32.367 回答