                 return false
             ee.addListener(event, new_handler)
 
-        path_regexp = new RegExp('^' + options.prefix  + '([/].+|[/]?)$')
+        path_regexp = new RegExp('^' + @options.prefix  + '([/].+|[/]?)$')
         handler = (req, res, extra) =>
             if not req.url.match(path_regexp)
                 return false

utils.objectExtend(App.prototype, trans_htmlfile.app)


class Server extends events.EventEmitter
    constructor: (user_options) ->
        @options =
            prefix: ''

            ['GET',     t('/eventsource'), ['h_sid', 'h_no_cache', 'eventsource']],
            ['GET',     t('/htmlfile'),    ['h_sid', 'h_no_cache', 'htmlfile']],
        ]
        maybe_add_transport = (name, urls) =>
            if @options.disabled_transports.indexOf(name) isnt -1
                # modify urls to return 404
                urls = for url in urls
                    [method, url, filters] = url
