lib/server/server.js
function (isGlobal, server, err, msg, session, resp, opts, cb) {
  let fm;
  if (isGlobal) {
    fm = server.globalFilterService;
  } else {
    fm = server.filterService;
  }
  if (fm) {
    if (isGlobal) {
      fm.afterFilter(err, msg, session, resp, function () {
        // do nothing
      });
    } else {
      fm.afterFilter(err, msg, session, resp, function (err) {
        cb(err, resp, opts);
      });
    }
  }
}
function (isGlobal, server, err, msg, session, resp, opts, cb) {
  let fm;
  if (isGlobal) {
    fm = server.globalFilterService;
  } else {
    fm = server.filterService;
  }
  if (fm) {
    if (isGlobal) {
      fm.afterFilter(err, msg, session, resp, function () {
        // do nothing
      });
    } else {
      fm.afterFilter(err, msg, session, resp, function (err) {
        cb(err, resp, opts);
      });
    }
  }
}
function ( isGlobal , server , err , msg , session , resp , opts , cb ) { let fm ; if ( isGlobal ) { fm = server . globalFilterService ; } else { fm = server . filterService ; } if ( fm ) { if ( isGlobal ) { fm . afterFilter ( err , msg , session , resp , function ( ) { // do nothing } ) ; } else { fm . afterFilter ( err , msg , session , resp , function ( err ) { cb ( err , resp , opts ) ; } ) ; } } }
Fire after filter chain if have
Fire after filter chain if have