msngr.js
function (uses, payload, message) {
        var results = [];
        var keys = (uses || []);
        for (var i = 0; i < forced.length; ++i) {
            if (keys.indexOf(forced[i]) === -1) {
                keys.push(forced[i]);
            }
        }

        for (var i = 0; i < keys.length; ++i) {
            if (middlewares[keys[i]] !== undefined) {
                results.push({
                    method: middlewares[keys[i]],
                    params: [payload, message]
                });
            }
        }

        return results;
    }
function (uses, payload, message) {
        var results = [];
        var keys = (uses || []);
        for (var i = 0; i < forced.length; ++i) {
            if (keys.indexOf(forced[i]) === -1) {
                keys.push(forced[i]);
            }
        }

        for (var i = 0; i < keys.length; ++i) {
            if (middlewares[keys[i]] !== undefined) {
                results.push({
                    method: middlewares[keys[i]],
                    params: [payload, message]
                });
            }
        }

        return results;
    }
function ( uses , payload , message ) { var results = [ ] ; var keys = ( uses || [ ] ) ; for ( var i = 0 ; i < forced . length ; ++ i ) { if ( keys . indexOf ( forced [ i ] ) === - 1 ) { keys . push ( forced [ i ] ) ; } } for ( var i = 0 ; i < keys . length ; ++ i ) { if ( middlewares [ keys [ i ] ] !== undefined ) { results . push ( { method : middlewares [ keys [ i ] ] , params : [ payload , message ] } ) ; } } return results ; }
gets a listing of middlewares
gets a listing of middlewares