 express = require 'express'
 app = module.exports = express.createServer()
 io = (require 'socket.io').listen(app)
+console.log io
+io.settings['log level'] = 1
 fs = require 'fs'
 eco = require 'eco'
 

  response.render 'home',
    "config": config
    "home": true

app.get '/:token', (request, response) ->
  token = request.params.token

  else if room.top? and room.top.socket?
    room.top.socket.emit event, data

pruneRooms = ->
  for i in [(rooms.length - 1)..0]
    if rooms[i]? and not (rooms[i].top? or rooms[i].bottom?)
      rooms.splice i, 1

# Setup Template Engine
app.set 'views', __dirname + '/views'
