require 'spree_core'
require 'spree_fishbowl/engine'

module SpreeFishbowl

  @@fishbowl = nil

  def self.connection
    @@fishbowl
  end

  def self.enabled?
    Spree::Config[:enable_fishbowl]
  end

  def self.client_from_config
    @@fishbowl ||= SpreeFishbowl::Client.from_config
  end

end

require 'spree_core'
require 'spree_fishbowl/engine'

module SpreeFishbowl

  def self.enabled?
    Spree::Config[:enable_fishbowl]
  end

  def self.client_from_config
    SpreeFishbowl::Client.from_config
  end

end

Simplify Fishbowl connections - no more long-running socket connections
Simplify Fishbowl connections - no more long-running socket connections