method EventLog.connect
EventLog.connect<Cursor = string>(connector: EventLogConnector<Cursor>): Task<EventLog<Cursor>, EventLogConnectionFailed>

Connect to an event log via a connector.

Examples

Example 1

const log = await EventLog.connect(createInMemory()).run();

Type Parameters

Cursor = string

Parameters

connector: EventLogConnector<Cursor>

Return Type

Task<EventLog<Cursor>, EventLogConnectionFailed>

Usage

import { EventLog } from ".";