How can I check node amqp connection status(open/close)

1,845 views
Skip to first unread message

Urmik Shah

unread,
Nov 25, 2014, 8:51:28 AM11/25/14
to rabbitm...@googlegroups.com
Hello,

I have been working on socket.io nodejs. For RabbitMQ, I am using node AMQP library(https://github.com/postwait/node-amqp). 
I have created amqp connection. From amqp object, how can I check whether my connection is open or close? 
Saw that there are "connectionOpenOk" and "connectionCloseOk" methods.But don't know how to get from amqp object.

Regards,
Urmik

Michael Klishin

unread,
Nov 25, 2014, 8:53:10 AM11/25/14
to Urmik Shah, rabbitm...@googlegroups.com
 On 25 November 2014 at 16:51:29, Urmik Shah (urm...@gmail.com) wrote:
> I have been working on socket.io(http://socket.io/) nodejs.
> For RabbitMQ, I am using node AMQP library(https://github.com/postwait/node-amqp).
> I have created amqp connection. From amqp object, how can I check
> whether my connection is open or close?
> Saw that there are "connectionOpenOk" and "connectionCloseOk"
> methods.But don't know how to get from amqp object.

There should be a way but I highly recommend switching to https://github.com/squaremo/amqp.node before it's too late.

That library is maintained, has decent docs, ported RabbitMQ tutorials and
a responsive person looking after it.
--
MK

Staff Software Engineer, Pivotal/RabbitMQ

Urmik Shah

unread,
Nov 25, 2014, 9:11:19 AM11/25/14
to rabbitm...@googlegroups.com, urm...@gmail.com
Thanks for your suggestion Michael.I will look into " https://github.com/squaremo/amqp.node ".

Actually I have been using "node amqp(https://github.com/postwait/node-amqp)" since quite a while.And It works fine till now. Also it is well documented.
Any particular disadvantage of "node-amqp" that i still haven't came across? 

Regards,
Urmik 

Michael Klishin

unread,
Nov 25, 2014, 9:49:46 AM11/25/14
to Urmik Shah, rabbitm...@googlegroups.com
It has known bugs (not major but annoying nonetheless) and is not really maintained.

MK
Reply all
Reply to author
Forward
0 new messages