Skip to content

Commit

Permalink
nocap always terminate by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Mar 16, 2024
1 parent e04bf6c commit 358df56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/nocap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nostrwatch/nocap",
"version": "0.4.1",
"version": "0.4.2",
"main": "src/index.js",
"type": "module",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/nocap/src/classes/Base.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ export default class Base {
'close',
() => this.ws.close()
)
if(this.hard_fail) return this.terminate(key)
if(this.hard_fail || this.config.websocketAlwaysTerminate === true) return this.terminate(key)
}

/**
Expand Down
3 changes: 2 additions & 1 deletion packages/nocap/src/interfaces/ConfigInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export const ConfigDefaults = {
autoDepsIgnoredInResult: true,
removeFromResult: [],
failAllChecksOnConnectFailure: true,
rejectOnConnectFailure: false
rejectOnConnectFailure: false,
websocketAlwaysTerminate: true
}

/**
Expand Down

0 comments on commit 358df56

Please sign in to comment.