feat: add default search relays

This commit is contained in:
codytseng 2024-12-22 22:22:43 +08:00
parent f2cfad50a9
commit 00af3aab64
6 changed files with 23 additions and 14 deletions

View file

@ -1,3 +1,4 @@
import { BIG_RELAY_URLS } from '@/constants'
import { formatPubkey } from '@/lib/pubkey'
import { tagNameEquals } from '@/lib/tag'
import { isWebsocketUrl, normalizeUrl } from '@/lib/url'
@ -15,13 +16,6 @@ import {
VerifiedEvent
} from 'nostr-tools'
const BIG_RELAY_URLS = [
'wss://relay.damus.io/',
'wss://nos.lol/',
'wss://relay.nostr.band/',
'wss://relay.noswhere.com/'
]
type TTimelineRef = [string, number]
class ClientService extends EventTarget {