You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I connect to the broker, the connection gets closed very quickly after established.
I can chain one or two publish or subscribe immediately after connection success, but 500ms - 1s later it gets closed.
The reason why the connection is closed is not clear looking at the logs, I just see the stream is closed after 1s receiving the connack.
mqttjs:client (mqttjs_4fdb8f15)stream :: on close +1s
This makes me think it's the broker closing the connection for some reason (like another client connecting with the same clientId). I suggest to check your logs on broker side
MQTTjs Version
5.9.0
Broker
Mosquitto (from Stackhero)
Environment
NodeJS
Description
When I connect to the broker, the connection gets closed very quickly after established.
I can chain one or two publish or subscribe immediately after connection success, but 500ms - 1s later it gets closed.
Minimal Reproduction
return mqtt.connect(<STACKHERO_MOSQUITTO_URL_TLS>, {
auth: <...>
})
Debug logs
The text was updated successfully, but these errors were encountered: