@waku/core
Version:
TypeScript implementation of the Waku v2 protocol
16 lines (15 loc) • 675 B
TypeScript
import type { PeerId } from "@libp2p/interface";
import { type CoreProtocolResult, type IEncoder, type IMessage, type Libp2p } from "@waku/interfaces";
import { PushResponse } from "@waku/proto";
export declare const LightPushCodec = "/vac/waku/lightpush/2.0.0-beta1";
export { PushResponse };
/**
* Implements the [Waku v2 Light Push protocol](https://rfc.vac.dev/spec/19/).
*/
export declare class LightPushCore {
private readonly streamManager;
readonly multicodec = "/vac/waku/lightpush/2.0.0-beta1";
constructor(libp2p: Libp2p);
private preparePushMessage;
send(encoder: IEncoder, message: IMessage, peerId: PeerId): Promise<CoreProtocolResult>;
}