cesardias on Nostr: Also, not sure if they support batching and split of filters, by treating relays as ...
Also, not sure if they support batching and split of filters, by treating relays as observables, this make relatively easy, my implementation of everything is somewhat 200 lines of code (ignoring types), it doesn't try to do everything tho, just a simple observables opening and completing, I am thinking about releasing a library with some useful pipelines for feeds that makes super easy to compose related subscriptions into the same stream (something like withEventAuthor(), withMentionedAuthors(), withQuotes(), withThreads()), everything connected, making it easier to teardown everything
Published at
2025-01-16 20:29:58Event JSON
{
"id": "e578b52c638f6479f461ba6add172d790c61bbe1b04efe4745b86df0934bca0b",
"pubkey": "c6603b0f1ccfec625d9c08b753e4f774eaf7d1cf2769223125b5fd4da728019e",
"created_at": 1737059398,
"kind": 1,
"tags": [
[
"e",
"9340705cf1189250af86d104d39ddbd4f009ceacf19b47c87da4f59db2a65b66",
"wss://nos.lol",
"root",
"c6603b0f1ccfec625d9c08b753e4f774eaf7d1cf2769223125b5fd4da728019e"
],
[
"e",
"89625118d3bfa7019526206557f29742b0d85e444188fac72c212cd3a835ce4e",
"",
"reply",
"c6603b0f1ccfec625d9c08b753e4f774eaf7d1cf2769223125b5fd4da728019e"
],
[
"p",
"c6603b0f1ccfec625d9c08b753e4f774eaf7d1cf2769223125b5fd4da728019e"
],
[
"client",
"nosotros",
"31990:c6603b0f1ccfec625d9c08b753e4f774eaf7d1cf2769223125b5fd4da728019e:1728437063755"
]
],
"content": "Also, not sure if they support batching and split of filters, by treating relays as observables, this make relatively easy, my implementation of everything is somewhat 200 lines of code (ignoring types), it doesn't try to do everything tho, just a simple observables opening and completing, I am thinking about releasing a library with some useful pipelines for feeds that makes super easy to compose related subscriptions into the same stream (something like withEventAuthor(), withMentionedAuthors(), withQuotes(), withThreads()), everything connected, making it easier to teardown everything",
"sig": "56eaad4d1e8dc91d82c54079c5e80326399ba17553e13adf28d9fda13db5b1a19387e2c950a1ca730da7372de6897d222c998f4bbd77db0752c2a68c0b89c899"
}