 # Module requirements
 http     = require 'http'
 express  = require 'express'
-socketio = require 'socket.io'
 assets   = require 'connect-assets'
 path     = require 'path'
 router   = require 'app/lib/router'

# Create app
app = express()
server = http.createServer(app)
io = socketio.listen(server)

# Env vars
env = app.get 'env'

  app.use express.errorHandler()

# Routing
router.bootstrap app

# Export application object
module.exports = server
