pippellia on Nostr: I have to decide on how to handle this edge case in the rely framework I am building: ...
I have to decide on how to handle this edge case in the rely framework I am building:
1. a client sends a REQ
2. a client sends an EVENT that matches the REQ
Should I return the event or not? The following is a screenshot of a khatru relay, that returns the event.
#asknostr
I think there is a real world pattern in support of returning it: a lot of people follow themselves to have feedback on whether their posts were successfully stored on the relay.
Published at
2025-05-13 10:32:56Event JSON
{
"id": "58d47f919c461c4e63bcb99b99e8a63ffc834f9839cacc88c3fdacc7930151c9",
"pubkey": "f683e87035f7ad4f44e0b98cfbd9537e16455a92cd38cefc4cb31db7557f5ef2",
"created_at": 1747132376,
"kind": 1,
"tags": [
[
"t",
"asknostr"
],
[
"r",
"wss://relay.damus.io/"
],
[
"r",
"wss://relay.nostr.band/"
],
[
"r",
"wss://relay.primal.net/"
],
[
"r",
"wss://auth.nostr1.com/"
]
],
"content": "I have to decide on how to handle this edge case in the rely framework I am building:\n\n1. a client sends a REQ\n2. a client sends an EVENT that matches the REQ\n\nShould I return the event or not? The following is a screenshot of a khatru relay, that returns the event.\n#asknostr\n\nI think there is a real world pattern in support of returning it: a lot of people follow themselves to have feedback on whether their posts were successfully stored on the relay.\n\nhttps://blossom.primal.net/715cf191bbc242342c3b230b085cac1e00cfa24030d561e19dda8a9a6c14057c.png ",
"sig": "42ee8cb032f5511633c4051a1d72f6e758824bd820f18c75c51880ce68d14cbe719bd020e671d95725a6438043b4ec101d19bfabe5443c1c0514d784e331439d"
}