Skip to content

Commit

Permalink
Merge pull request #1355 from alexsherman/connection-fatal-error-getter
Browse files Browse the repository at this point in the history
Add getter function for connection private property _fatalError
  • Loading branch information
sidorares committed Nov 11, 2022
2 parents f4e8ac0 + 51244b7 commit ccf53c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,10 @@ class Connection extends EventEmitter {
err.code = code || 'PROTOCOL_ERROR';
this.emit('error', err);
}

get fatalError() {
return this._fatalError;
}

handlePacket(packet) {
if (this._paused) {
Expand Down

0 comments on commit ccf53c9

Please sign in to comment.