# frozen_string_literal: true module RubyRabbitmqJanus module Janus # @author VAILLANT Jeremy # This class work with janus and send a series of message for session level class TransactionSession < Transaction # Connect to session and post an message def session_connect(exclusive) rabbit.transaction_short do choose_queue(exclusive) send_a_message { yield } end end end end end