Something went wrong. Try again.
Logiverse library. (beta)
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829import { Reader, Writer, Cache, type LogiverseConfig } from '../index.js'
interface Props { interval: number cache: Cache.LogCache network: LogiverseConfig}
export class Client { #reader: Reader #writer: Writer | undefined #cache: Props['cache'] #network: Props['network']
constructor({ interval, cache, network }: Props) { this.#cache = cache this.#network = network this.#reader = new Reader({ interval, cache: this.#cache, network: this.#network }) }
async connect(): Promise<void> { this.#reader.read() await this.#reader.invalidate() }}