       require './models/app'
     ]
 
-  if KONFIG.misc?.debugConnectionErrors then
-    # TEST AMQP WITH THIS CODE. IT THROWS THE CHANNEL ERROR.
-    # koding.disconnect ->
-    #   console.log "[SOCIAL WORKER #{name}] is reached end of its life, will die in 10 secs."
-    #   setTimeout ->
-    #     process.exit()
-    #   ,10*1000
-
 console.info "Koding Social Worker #{process.pid} has started."
 
-# require './followfeed' # side effects
 express = require 'express'
 cors = require 'cors'
 helmet = require 'helmet'

      else
        console.log "this is not a proper account".red
        console.log "constructor is JAccount", JAccount is account.constructor
        # koding.emit 'error', message: 'this is not a proper account'
}

koding.on 'authenticateUser', (client, callback)->

    after: "non-overlapping, random, 3 digits prime-number of minutes"
    middleware : (name,callback) -> koding.disconnect callback
    middlewareTimeout : 15000

koding = new Bongo {
  verbose     : social.verbose
