AMQP::Client::Connection
Class methods
start(io : UNIXSocket | TCPSocket | OpenSSL::SSL::Socket::Client | WebSocketIO, user, password, vhost, channel_max, frame_max, heartbeat, connection_information, name = File.basename(PROGRAM_NAME))
Connection negotiation
Instance methods
blocked?
Sourcechannel
Sourcechannel_max
Sourceclose(reason = "", no_wait = false)
Close the connection the server.
The reason might be logged by the server
closed?
Sourceclosing_frame
Sourceframe_max
Sourceon_blocked
Callback called when server is blocked, first argument is the reason from the server
on_close
Callback called when the server closes the Connection
gracefully via an AMQP Connection.Close method frame.
on_disconnect
Callback called when the Connection is lost at the network
layer — i.e. the read loop encountered IO::Error or OpenSSL::Error
without a preceding AMQP Connection.Close frame.