cloudamqp / amqp-client.js

AMQP 0-9-1 TypeScript client both for Node.js and browsers (using WebSocket)
https://cloudamqp.github.io/amqp-client.js/
Apache License 2.0
200 stars 19 forks source link

Connection with websocket in browser : How to handle connection lost #111

Open guirak opened 6 months ago

guirak commented 6 months ago

Hello,

I'm using the library as websocket with the tcp relay in a Nuxt application.

I'm trying to detect the lost of the connection stopping my tcp relay process but nothing happen. Looking the state of the amqp connection, channel and consumers, they stay in a not closed state.

How to be notified when something cause the close of the connection, the channel or the consumer ?

Thank you.