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
132 stars 83 forks source link

MQTT client closes with No packet has been received for 1.5 times the Keepalive time #796

Closed vicancy closed 1 month ago

vicancy commented 1 month ago

Describe the bug

I connect use https://mqttx.app/web-client, and the connection closes with "An mqtt session is ended. Reason: No packet has been received for 1.5 times the Keepalive time.", According to the definition, "The Keep Alive mechanism in MQTT ensures the connection’s liveliness and provides a way for the broker to detect if a client becomes unresponsive or disconnected.", who do we expect to send the keep alive back to client? Shall our service take this responsibility, as the same as what we do for the WebSocket connections?

image

Y-Sindo commented 1 month ago

In MQTT, it's client's responsibility to ping us in time. See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901195