1 | ;
|
2 |
|
3 | const { Transform } = require('stream');
|
4 |
|
5 | module.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 | };
|