Fix Relay subscribe() method generates malformed JSON when filters are empty

This commit is contained in:
tf 2025-07-19 18:31:12 +07:00
parent d706ef961f
commit 57f297be52
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ export class Subscription {
}
public fire() {
this.relay.send('["REQ","' + this.id + '",' + JSON.stringify(this.filters).substring(1))
this.relay.send(JSON.stringify(['REQ', this.id, ...this.filters]))
// only now we start counting the eoseTimeout
this.eoseTimeoutHandle = setTimeout(this.receivedEose.bind(this), this.eoseTimeout)