Azure / azure-webpubsub

Azure Web PubSub Service helps you to manage WebSocket connections and do publish and subscribe in an easy way
https://azure.github.io/azure-webpubsub/
MIT License
135 stars 85 forks source link

The native protocol always receives base64 encoded content from MQTT client pulish #794

Closed vicancy closed 3 months ago

vicancy commented 3 months ago

Describe the bug

I am using https://mqttx.app/web-client, and although I choose JSON payload when publish to topic, the message I received from the native protocol is always base64 string, is it possible that the JSON payload is supported and the native protocol could receive flattened JSON?

Y-Sindo commented 3 months ago

That JSON dropdown doesn't affect the actual packet to send. You need to set the Content Type field to "application/json" image