Client ID in connection.created Event #12205
-
I have enabled event exchange plugin and got some information in AMQP message header properties. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
I have seen client id in client properties of AMQP message header, but the property seems to be dropped when the event message converted to MQTT message. Any advice will be appreciated. |
Beta Was this translation helpful? Give feedback.
-
Here is where the
So We won't guess as to how exactly you observe that the key is "lost". Please put together an executable way to reproduce, we do not guess in this community. |
Beta Was this translation helpful? Give feedback.
-
I have reproduce it and have following result: This is the original message in RabbitMQ: @michaelklishin |
Beta Was this translation helpful? Give feedback.
-
As shown as above, the client id is perfect kept in original message and AMQP message, but cannot be seen in MQTT message and Wireshark packet. Any advice will be appreciated. |
Beta Was this translation helpful? Give feedback.
-
Using an AMQP 0-9-1 or AMQP 1.0 client maybe developer friendly, however, MQTT is expected by some IoT applications. |
Beta Was this translation helpful? Give feedback.
MQTT, even MQTTv5, does not have the concept of arbitrary user-provided headers so they are not translated.
Setting
client_id
directly during a translation is technically possible but the idea sounds very controversial to me.So the only piece of advice I have is: consume the internal events using an AMQP 0-9-1 or AMQP 1.0 client.