   host = null
   port = 3000
   root_function = null
+  disable_io = false
 
   for a in arguments
     switch typeof a

        else return result
  
  # Register socket.io handlers.
  io.sockets.on 'connection', (socket) ->
    c = {}
    
    build_ctx = ->

        else port = (Number) a
      when 'number' then port = a
      when 'function' then root_function = a
      when 'object'
        for k, v of a
          switch k
            when 'port' then port = v
            when 'disable_io' then disable_io = v

  zapp = zappa.app(root_function,disable_io)
  app = zapp.app

  if host then app.listen port, host
