UNPKG

nearlake-js

Version:

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

4 lines (3 loc) 288 B
import { LakeConfig, StreamerMessage } from "./types"; export declare function stream(config: LakeConfig): AsyncIterableIterator<StreamerMessage>; export declare function startStream(config: LakeConfig, onStreamerMessageReceived: (data: StreamerMessage) => Promise<void>): Promise<void>;