Hi
I sniffed the request from MQTT Explorer to a Mosquitto broker websockets endpoint and it includes the required header for stream compression - Sec-WebSocket-Extensions: permessage-deflate:
GET /ws HTTP/1.1
Sec-WebSocket-Version: 13
Sec-WebSocket-Key: xx
Connection: Upgrade
Upgrade: websocket
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
Sec-WebSocket-Protocol: mqtt
Host: my-mosquitto-instance:1885
However the response from Mosquitto is not compressed. I can’t see anything in the docs referring to it to enable it.
Is there any support for compression? Are there any plans to add it? If not, has anyone put something like nginx in front of Mosquitto websockets with any success?
For this application there would potentially be very significant bandwidth cost savings by supporting compression.
Thanks
Tom