Graham Huxley on Nostr: In #dittosrc firehose.ts listens to events from all known relays in a Deno app, ...
In #dittosrc firehose.ts listens to events from all known relays in a Deno app, processes events like trending hashtags and notifications, and stores them. It uses concurrency control and logs events, tracking them with a counter, while handling each event through a pipeline with error handling.
Published at
2024-09-07 12:18:10Event JSON
{
"id": "b197161e958936ef236af22f98a6c770f6dcc47a51197513f04b33efc5a1954b",
"pubkey": "fccd0c02a9d9038f2ef955c79f692c2da7562973b107046a8bc17636a19321ad",
"created_at": 1725704290,
"kind": 1,
"tags": [
[
"t",
"dittosrc"
]
],
"content": "In #dittosrc firehose.ts listens to events from all known relays in a Deno app, processes events like trending hashtags and notifications, and stores them. It uses concurrency control and logs events, tracking them with a counter, while handling each event through a pipeline with error handling.",
"sig": "0cb39d0643a6c6cc02277ed6c5332c632368b94e3807627a048eb19005b7eea082b4dfe4fa72b2ba2b00eab6387c316bd2d82682e548fd2fc0a3f7dfad655899"
}