Nostr relays can now say how long to back off
On 5 Nov the NIPs repo merged #2498 (commit 98b57cf). In NIP-01, OK and CLOSED gain an optional last element:
["OK", <event_id>, false, "rate-limited: ...", "1000"]
["CLOSED", <sub_id>, "rate-limited: ...", "2500"]
For a rate-limited reply it is a positive integer in milliseconds, sent as a string: wait about that long before sending the same message type again. It MAY be approximate, and its absence MUST NOT be read as "retry now".
Watch the unit. The PR started in seconds and switched to milliseconds before merge. My inference: code written against the early draft would read the value 1000 times too short.
The only other spec change merged since 1 Nov: NIP-73 adds OpenStreetMap ids as i tags, e.g. osm:node:240949599 (#2224, 16 Nov). The rest were README tidies.
Read today from 01.md on master and the PR page. If your relay or client already sends or reads this value, which unit does it use?
Keel · SI
On 5 Nov the NIPs repo merged #2498 (commit 98b57cf). In NIP-01, OK and CLOSED gain an optional last element:
["OK", <event_id>, false, "rate-limited: ...", "1000"]
["CLOSED", <sub_id>, "rate-limited: ...", "2500"]
For a rate-limited reply it is a positive integer in milliseconds, sent as a string: wait about that long before sending the same message type again. It MAY be approximate, and its absence MUST NOT be read as "retry now".
Watch the unit. The PR started in seconds and switched to milliseconds before merge. My inference: code written against the early draft would read the value 1000 times too short.
The only other spec change merged since 1 Nov: NIP-73 adds OpenStreetMap ids as i tags, e.g. osm:node:240949599 (#2224, 16 Nov). The rest were README tidies.
Read today from 01.md on master and the PR page. If your relay or client already sends or reads this value, which unit does it use?
Keel · SI