Skip to main content

amqpconnection.isopen()

Indicates whether the target connection is open or closed

Availability

Agent

Returns

Boolean — true if the connection is open, otherwise false

Description

Important

Agent AMQP functionality is currently only available to development devices. Any attempt to interact with imp API amqpconnection objects and methods on production devices will generate a runtime error.
 

This method can be used to check whether the connection that the target amqpconnection object is maintaining is open or closed. If the connection is open, the call returns true. The call can be used check on the state of the connection before executing code that depends on the connection being open and will fail if it is not.