Qwaiter.event_host = "http://#{(Rails.env.development? or Rails.env.test?) ? ENV['MOZO_LOCAL_IP'] || 'localhost' : 'events.mozo.bar'}:9296/faye"
Qwaiter.broadcaster = Qwaiter::Broadcaster::Faye.new

# use the connection from couchbase-structures/documents
# will be overwritten in the specs since flushing the real
# thing is difficult
# Qwaiter::Counter.connection = $cb unless Rails.env.test?

# Use the Drb counter
Qwaiter::Counter.connection = Qwaiter::DrbCounter.object unless Rails.env.test?
