mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-12 10:43:08 +00:00
* remove IBaseProtocol * fix references, interfaces and integration * fix ci * up mock * up lock * add mock for local storage * add missing prop, fix tests * up lock
23 lines
463 B
TypeScript
23 lines
463 B
TypeScript
import type { ISender, ISendOptions } from "./sender.js";
|
|
|
|
export type LightPushProtocolOptions = ISendOptions & {
|
|
/**
|
|
* The interval in milliseconds to wait before retrying a failed push.
|
|
* @default 1000
|
|
*/
|
|
retryIntervalMs: number;
|
|
|
|
/**
|
|
* Number of peers to send message to.
|
|
*
|
|
* @default 1
|
|
*/
|
|
numPeersToUse?: number;
|
|
};
|
|
|
|
export type ILightPush = ISender & {
|
|
readonly multicodec: string;
|
|
start: () => void;
|
|
stop: () => void;
|
|
};
|