mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-29 14:06:09 +02:00
Update passthrough state
This commit is contained in:
parent
65d68f33dc
commit
72301104ff
1 changed files with 2 additions and 0 deletions
|
@ -107,11 +107,13 @@ function Client(/*input, output*/) {
|
|||
});
|
||||
|
||||
this.setTemporaryDirectDataHandler = function(handler) {
|
||||
this.dataPassthrough = true; // let implementations do with what they will here
|
||||
this.input.removeAllListeners('data');
|
||||
this.input.on('data', handler);
|
||||
};
|
||||
|
||||
this.restoreDataHandler = function() {
|
||||
this.dataPassthrough = false;
|
||||
this.input.removeAllListeners('data');
|
||||
this.input.on('data', this.dataHandler);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue