How to reconnect to message broker

i use your libnvds_amqp_proto.so, can you tell me how to reconnect to the broker server.
once the server have powered off.

after the server restart , we can’t send data to server

In current implementation, restart of broker is required to re-establish the connection to server

If deepstream apps are being used then relaunch of app will be required. in case of custom application, broker plugin must be re-initialized, set the state of the plugin to NULL and then again to PLAYING,This will allow the plugin to re-init again.