mochi-mqtt / server

The fully compliant, embeddable high-performance Go MQTT v5 server for IoT, smarthome, and pubsub
MIT License
1.29k stars 222 forks source link

Specify properties when inline publishing #430

Closed TheCount closed 2 months ago

TheCount commented 2 months ago

The Server.Publish API does not allow to specify MQTT 5 properties.

The obvious workaround would be to use Server.InjectPacket instead. However, the server's inline client Server.inlineClient is not exported.

Is there a simple way to inject a publishing with properties?

thedevop commented 2 months ago

Duplicate of #428.