lib/middleware/bufferDataEventsUntilFirstListener.js
function createEventBufferer(eventName, bufferedEvents) {
    return function () { // ...
        bufferedEvents.push([eventName].concat(Array.prototype.slice.call(arguments)));
    };
}
function createEventBufferer(eventName, bufferedEvents) {
    return function () { // ...
        bufferedEvents.push([eventName].concat(Array.prototype.slice.call(arguments)));
    };
}
function createEventBufferer ( eventName , bufferedEvents ) { return function ( ) { // ... bufferedEvents . push ( [ eventName ] . concat ( Array . prototype . slice . call ( arguments ) ) ) ; } ; }
Middleware that buffers up the request's 'data' and 'end' events
until another 'data' listener is added, then replay the events in
order.

Intended for use with formidable in scenarios where the IncomingForm
is initialized in a route after something async has happened
(authentication via a socket, for instance).
Middleware that buffers up the request s data and end events until another data listener is added then replay the events in order .