Fix Relay subscribe() method generates malformed JSON when filters are empty
This commit is contained in:
parent
d706ef961f
commit
57f297be52
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue