Martti Malmi on Nostr: Pull requested to strfry. Thoughts? --- NIP-114: ids_only filter When a subscription ...
Pull requested to strfry. Thoughts?
---
NIP-114: ids_only filter
When a subscription has a filter with ids_only: true, the relay responds with [HAVE, subId, eventID] messages. The client can then request the full event from only one relay instead of receiving it from all subscribed relays. If the event is already in a local database, the full event request can be skipped altogether.
I have not implemented this for the stream command yet, but this could save a lot of bandwidth if you're connecting to many other relays and subscribing to everything.
We might also want a GET message that is sent in response to HAVE messages to request the full event without creating a subscription.
https://github.com/hoytech/strfry/pull/99
---
NIP-114: ids_only filter
When a subscription has a filter with ids_only: true, the relay responds with [HAVE, subId, eventID] messages. The client can then request the full event from only one relay instead of receiving it from all subscribed relays. If the event is already in a local database, the full event request can be skipped altogether.
I have not implemented this for the stream command yet, but this could save a lot of bandwidth if you're connecting to many other relays and subscribing to everything.
We might also want a GET message that is sent in response to HAVE messages to request the full event without creating a subscription.
https://github.com/hoytech/strfry/pull/99