 # Start listening to the faye server port.
 faye.listen config.faye.port
 
-console.log "Started Node.js faye server on port #{config.faye.port}"
+console.log "=> Node.js cloudsdale-faye started on  ws://#{config.faye.host}:#{config.faye.port}#{config.faye.path}"
 
 # Get the faye client
 client = faye.getClient()

  user: config.rabbit.user
  pass: config.rabbit.pass

# When AMQP connection is ready, start subscribing to the faye queue.
connection.on "ready", ->
  connection.queue "faye", { passive: true }, (queue) ->
    console.log "Initialized Node.js faye AMQP connection..."
    queue.bind "#"
    queue.subscribe { ack: false }, (message, headers, deliveryInfo) ->
            
      client.publish message.channel, message.data

console.log "=> Booting Node.js faye..."

# Read the environment variable
global.app_env = process.env.NODE_ENV || "development"
