AsaiToshiya on Nostr: seenOn ``` pool.trackRelays = true; const event = await pool.get(relays, filter); ...
seenOn
```
pool.trackRelays = true;
const event = await pool.get(relays, filter);
const relay = Array.from(pool.seenOn.get(event.id))[0];
console.log('relay: ', relay.url);
```
#nostrtools
Published at
2024-10-10 00:50:08Event JSON
{
"id": "9fa7e19f15a4d6de67ff71836c681800b8c3ee1646a9443375c8c21c68dfec5f",
"pubkey": "0a2f19dc1a185792c3b0376f1d7f9971295e8932966c397935a5dddd1451a25a",
"created_at": 1728521408,
"kind": 1,
"tags": [
[
"t",
"nostrtools"
]
],
"content": "seenOn\n\n```\npool.trackRelays = true;\nconst event = await pool.get(relays, filter);\nconst relay = Array.from(pool.seenOn.get(event.id))[0];\n\nconsole.log('relay: ', relay.url);\n```\n\n#nostrtools",
"sig": "e06ec57d8515e8af545fa5fa9f4d67d72e609cc6e6eab862604fbd893f6844896b73d06c21e5134c4f42c5e0d2e621afc7929bb17cdcc6c98bc37eaa2713b2c9"
}