diff --git a/index.js b/index.js index 25462b3..dfb2a56 100644 --- a/index.js +++ b/index.js @@ -606,6 +606,10 @@ module.exports = class Protomux { this.stream.write(buffer) } + destroy (err) { + this.stream.destroy(err) + } + _safeDestroy (err) { safetyCatch(err) this.stream.destroy(err)