js-waku/packages/interfaces/src/light_push.ts

15 lines
325 B
TypeScript
Raw Normal View History

import type { IEncoder, IMessage } from "./message.js";
import type {
PointToPointProtocol,
ProtocolOptions,
SendResult,
} from "./protocols.js";
export interface ILightPush extends PointToPointProtocol {
push: (
encoder: IEncoder,
message: IMessage,
opts?: ProtocolOptions
) => Promise<SendResult>;
}