UNPKG

@near-lake/framework

Version:

JS Library to connect to the NEAR Lake S3 and stream the data

5 lines (4 loc) 360 B
import { LakeConfig } from './types'; import { Block, StreamerMessage, LakeContext } from "@near-lake/primitives"; export declare function stream(config: LakeConfig): AsyncIterableIterator<StreamerMessage>; export declare function startStream(config: LakeConfig, onStreamerMessageReceived: (data: Block, context: LakeContext) => Promise<void>): Promise<void>;