js-waku/packages/sdk/src/index.ts
fryorcraken 4d5c152f5b
feat: introduce reliable channels (#2526)
* SDS: pushOutgoingMessage is actually sync

* SDS: ensure that `ContentMessage` class is stored in local history with `valueOf` method

* feat: introduce reliable channels

Easy to use Scalable Data Sync (SDS, e2e reliability) wrapper, that includes:
- store queries upon connection to store nodes
- store queries to retrieve missing messages

* remove `channel` prefix

* attempt to improve performance when processing a lot of incoming messages

* test: split test file

* use index.ts for re-export only.

* improve if condition

* use getter for isStarted

* waku node already auto-start

* rename send

* fix lightPush.send type post rebase

* test: remove extra console.log

* SDS: emit messages as missing as soon as they are received

* make configurable elapse time for task process

* typo

* use string instead of enum for event types

* ReliableChannel.send returns the message id
2025-09-09 12:43:48 +10:00

25 lines
643 B
TypeScript

export { createEncoder, createDecoder } from "@waku/core";
export {
DecodedMessage,
Decoder,
Encoder
} from "@waku/core/lib/message/version_0";
export { utf8ToBytes, bytesToUtf8 } from "@waku/utils/bytes";
export * from "./waku/index.js";
export {
createLightNode,
defaultLibp2p,
createLibp2pAndUpdateOptions
} from "./create/index.js";
export { LightPush } from "./light_push/index.js";
export { Filter } from "./filter/index.js";
export { Store } from "./store/index.js";
export * from "./reliable_channel/index.js";
export * as waku from "@waku/core";
export * as utils from "@waku/utils";
export * from "@waku/interfaces";