mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-14 10:58:52 +00:00
17 lines
367 B
TypeScript
17 lines
367 B
TypeScript
import { verifyEvent } from './pure.ts'
|
|
import TrustedRelay from './trusted-relay.ts'
|
|
|
|
export default class PureRelay extends TrustedRelay {
|
|
constructor(url: string) {
|
|
super(url, { verifyEvent })
|
|
}
|
|
|
|
static async connect(url: string) {
|
|
const relay = new PureRelay(url)
|
|
await relay.connect()
|
|
return relay
|
|
}
|
|
}
|
|
|
|
export * from './trusted-relay.ts'
|