JavaScript API > Error: Operation is invalid for Message Consumer in disconnected

Hi @leonard ,

Can you listen for the other events defined in the docs? One of those is likely triggering without being handled:

Hope that helps!