Logo
Explore Help
Sign In
logos-messaging/logos-messaging-js
1
0
Fork 0
You've already forked logos-messaging-js
mirror of https://github.com/logos-messaging/logos-messaging-js.git synced 2026-02-09 18:55:25 +00:00
Code Issues Packages Projects Releases Wiki Activity
logos-messaging-js/packages/sdk/src/protocols/base_protocol.ts

16 lines
348 B
TypeScript
Raw Normal View History

chore(lightpush)!: move protocol implementation to `@waku/sdk` (1/n) (#1964) * chore: decouple `Filter` between `core` and `sdk` moves `SubscriptionManager` to `sdk` side * chore: update package dependencies also update peer deps in sdk * chore: update imports * chore: update tests * chore(side-change): update lightpush * chore: update size-limit import * chore(sdk): update dependencies
2024-04-19 17:20:34 +05:30
import { IBaseProtocolSDK } from "@waku/interfaces";
chore(lightpush)!: move protocol implementation opinions to `@waku/sdk` (#1887) * 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
2024-03-11 18:50:34 +05:30
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;
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.0 Page: 87ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API