diff --git a/src/customClient.js b/src/customClient.js index 9bdc725b..b0524533 100644 --- a/src/customClient.js +++ b/src/customClient.js @@ -53,6 +53,7 @@ class CustomChannelClient extends EventEmitter { end (reason) { this._endReason = reason + this.emit('end', this._endReason || 'unknown') } write (name, params) {