mirror of
https://github.com/logos-messaging/logos-delivery-js.git
synced 2026-03-11 04:03:07 +00:00
* chore: restructure @waku/sdk * chore: introduce `BaseProtocolCore` and `BaseProtocolSDK` * chore: introduce `LightPushCore` and `LightPushSDK` * chore: update `relay` for new types * chore(sdk): update structure * chore(filter): add `numPeersToUse` * chore: update tests * update: size-limit * chore: update more tests * attach issue link to TODOs
16 lines
334 B
TypeScript
16 lines
334 B
TypeScript
import { IBaseProtocolSDK } from "..";
|
|
|
|
interface Options {
|
|
numPeersToUse?: number;
|
|
}
|
|
|
|
const DEFAULT_NUM_PEERS_TO_USE = 3;
|
|
|
|
export class BaseProtocolSDK implements IBaseProtocolSDK {
|
|
public readonly numPeers: number;
|
|
|
|
constructor(options: Options) {
|
|
this.numPeers = options?.numPeersToUse ?? DEFAULT_NUM_PEERS_TO_USE;
|
|
}
|
|
}
|