code: function(request /*, moreArguments */) {
          // Store arguments for use within the closure below
          var args = arguments;
  
          // Rewrite /websocket and /websocket/ urls to /sockjs/websocket while
          // preserving query string.
          var parsedUrl = url.parse(request.url);
          if (parsedUrl.pathname === pathPrefix + '/websocket' ||
              parsedUrl.pathname === pathPrefix + '/websocket/') {
            parsedUrl.pathname = self.prefix + '/websocket';
            request.url = url.format(parsedUrl);
          }
          _.each(oldHttpServerListeners, function(oldListener) {
            oldListener.apply(httpServer, args);
          });
        }
docs: request and upgrade have different arguments passed but we only care about the first one which is always request