Skip to content

Integrate content type from properties in protocol v5 MQTT #136

@VigneshVSV

Description

@VigneshVSV

Please describe.
The newer MQTT v5 version support a properties field which can contain non payload values that get transmitted to the consumer. We need to leverage this to publish the content type along with the message.

Describe the solution you'd like
Rough steps:

  • While publishing the message (in hololinked.server.mqtt.MQTTPublisher.publish), retrieve the content type from the EventMessage header from ZMQ layer and fit into the properties field
  • On MQTTConsumer side (in hololinked.client.mqtt.consumed_interactions.MQTTConsumer), use this content type if available first, then fallback to the value from the TD, which then falls back to application/json
  • Carry out a simple check by overriding the content type manually on publisher side and check if the value is carried over on consumer side

Additional context
If you are contributing first time, contributing.md can help

Metadata

Metadata

Assignees

No one assigned

    Labels

    beginnerbeginner level good first issues, usually issues that can worked on without skimming the whole repogood first issueGood for newcomers

    Type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions