UNPKG

273 BJavaScriptView Raw
1'use strict';
2
3const { Transform } = require('stream');
4
5module.exports = class KellnerTransfrom extends Transform {
6 constructor(app) {
7 super({ objectMode: true });
8 this.app = app;
9 this.on('error', e => app.fail(e));
10 this.on('disconnect', e => app.fail(e));
11 }
12};