pool: closed relays must be eliminated.

This commit is contained in:
fiatjaf
2025-07-17 23:26:31 -03:00
parent 2f529b3f8a
commit d706ef961f
3 changed files with 6 additions and 1 deletions

View File

@@ -319,6 +319,7 @@ export class AbstractRelay {
this.closeAllSubscriptions('relay connection closed by us')
this._connected = false
this.ws?.close()
this.onclose?.()
}
// this is the function assigned to this.ws.onmessage