def self.included(host)
host.handle(Protocol::Confirm::SelectOk) do |connection, frame|
method = frame.decode_payload
channel = connection.channels[frame.channel]
channel.handle_select_ok(method)
end
host.handle(Protocol::Basic::Ack) do |connection, frame|
method = frame.decode_payload
channel = connection.channels[frame.channel]
channel.handle_basic_ack(method)
end
host.handle(Protocol::Basic::Nack) do |connection, frame|
method = frame.decode_payload
channel = connection.channels[frame.channel]
channel.handle_basic_nack(method)
end
end