             ['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
+        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

                return false
            ee.addListener(event, new_handler)

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

            origins: ['*:*']
            disabled_transports: []
            jsessionid: true
        if user_options
            utils.objectExtend(@options, user_options)

    installHandlers: (http_server) ->
        if not @options.sockjs_url
            throw new Error('Option "sockjs_url" is required!')
        console.log('SockJS v' + sockjs_version() + ' ' +
                    'bound to ' + JSON.stringify(@options.prefix))

        p = (s) => new RegExp('^' + @options.prefix + s + '[/]?$')
        t = (s) => [p('/([^/.]+)/([^/.]+)' + s), 'server', 'session']
        opts_filters = ['h_sid', 'xhr_cors', 'cache_for', 'xhr_options', 'expose']
        dispatcher = [
