Thursday, 22 August 2019

How to check if there are no message to consume in AMQ queue in stopmit node.js

I am using stompit package of node.js to connect to AMQ queue to subscribe message. I used ConnectFailover class to create connection and channelPool class to create pool.

Problem I am facing is that once connection is made and if there is no message in the queue then it stay connected.

What I need a way to disconnect if there is no message to read from the queue. I don't see any option in stompit documentation.



from How to check if there are no message to consume in AMQ queue in stopmit node.js

No comments:

Post a Comment