mochi-mqtt / server

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

Got error when enable compression of websocket listener #418

Open LittleKey opened 1 month ago

LittleKey commented 1 month ago

1. Add EnableCompression: true flag of websocket listener:

image

2. And then setup websocket client connect to server mqtt over websocket with permessage-deflate header:

image

3. Then got error on server:

image
LittleKey commented 1 month ago

If remove the EnableCompression: true flag, everything will be ok:

image

Except missing the compress feature of websocket. 😢 😿