ChipTuner on Nostr: I'm not well versed on relay coms, but I believe it's per session when the socket is ...
I'm not well versed on relay coms, but I believe it's per session when the socket is opened. It would get expensive otherwise. However I think a relay can send an auth message whenever it feels like, but it's attached to a session id.
The only code I'm most familiar with is Grain, and he uses per kind limiting iirc. Strfy defers it to the handlers I believe, so it depends on the message kind. I would assume strfy also has per-req limiting as well.
Published at
2024-09-21 16:24:32Event JSON
{
"id": "ec71d24b8fa5fe2613cdde01cad6a8ee70a95394d8e0852f2a8f45b58984358d",
"pubkey": "036533caa872376946d4e4fdea4c1a0441eda38ca2d9d9417bb36006cbaabf58",
"created_at": 1726935872,
"kind": 1,
"tags": [
[
"e",
"6af756b54ae91e2376580be5011063612f6dc3685b5b50e28c8348ed736adbb2",
"wss://christpill.nostr1.com/",
"root"
],
[
"e",
"b20842844e96e49a0730f95b09aaf6ed247e6840aceb0805c20017e7b14e28fe",
"",
"reply"
],
[
"p",
"fd208ee8c8f283780a9552896e4823cc9dc6bfd442063889577106940fd927c1",
"",
"mention"
],
[
"p",
"a9434ee165ed01b286becfc2771ef1705d3537d051b387288898cc00d5c885be",
"",
"mention"
]
],
"content": "I'm not well versed on relay coms, but I believe it's per session when the socket is opened. It would get expensive otherwise. However I think a relay can send an auth message whenever it feels like, but it's attached to a session id.\n\nThe only code I'm most familiar with is Grain, and he uses per kind limiting iirc. Strfy defers it to the handlers I believe, so it depends on the message kind. I would assume strfy also has per-req limiting as well. ",
"sig": "e5c03438d94883fd93054a9c56ef5b8562dc13bb0bd6c90639475467ce11130b92d2c571725a6702908d13337ef692eb898a1a37b4eba4f7c26d58156a57e3fa"
}