mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-07 08:13:12 +00:00
15 lines
320 B
TypeScript
15 lines
320 B
TypeScript
|
|
import type { Encoder, Message } from "./message.js";
|
||
|
|
import type {
|
||
|
|
PointToPointProtocol,
|
||
|
|
ProtocolOptions,
|
||
|
|
SendResult,
|
||
|
|
} from "./protocols.js";
|
||
|
|
|
||
|
|
export interface LightPush extends PointToPointProtocol {
|
||
|
|
push: (
|
||
|
|
encoder: Encoder,
|
||
|
|
message: Message,
|
||
|
|
opts?: ProtocolOptions
|
||
|
|
) => Promise<SendResult>;
|
||
|
|
}
|