unsplit, backwards-compatibility, wasm relay and pool must be configured manually from the abstract classes.

This commit is contained in:
fiatjaf
2023-12-21 19:57:28 -03:00
parent a4ae964ee6
commit 7f11c0c618
16 changed files with 162 additions and 89 deletions

16
relay.ts Normal file
View File

@@ -0,0 +1,16 @@
import { verifyEvent } from './pure.ts'
import { AbstractRelay } from './abstract-relay.ts'
export class Relay extends AbstractRelay {
constructor(url: string) {
super(url, { verifyEvent })
}
static async connect(url: string) {
const relay = new Relay(url)
await relay.connect()
return relay
}
}
export * from './abstract-relay.ts'