js-waku/packages/utils
Danish Arora 93e78c3b87
feat(lightpush): peer management for protocols (#2003)
* chore: make `dropConnection` to be a public function

* feat: peers are maintained for protocols
- passes `ConnectionManager` to ProtocolSDK to allow disconnecting from within protocol
- maintains `numPeersToUse` for each protocol within BaseProtocolSDK

* fix: pass options to protocols

* chore: update interfaces to allow public access

* chore: improve logging on protocol

* fix: renew peer upon failure

* chore(tests): allow DefaultPubsubTopic

* feat(lightpush): write peer management tests

* chore: rename test

* feat: add lock to `maintainPeers()` to handle parallelisation of requests
fixes parallelisation of lightpush.send() requests

* fix: concurrent lightpush requests

* fix: test & improve peers fetching

* chore: use getter

* address comments

* chore: smaller improvements

* feat: attempt to improve time for first lightpush.send()

* chore: use `window.interval` for type-safety

* chore: remove delays

* feat: add autoRetry

* feat: `forceUseAllPeers` to wait for all connected peers to be resoled
2024-06-19 01:52:16 -04:00
..
src feat(lightpush): peer management for protocols (#2003) 2024-06-19 01:52:16 -04:00
.eslintrc.cjs feat: Logger with log levels (#1672) 2023-10-20 16:36:47 +05:30
.mocha.reporters.json feat: add function to validate autoshard content topic 2023-11-15 22:28:25 -08:00
.mocharc.cjs feat: add function to validate autoshard content topic 2023-11-15 22:28:25 -08:00
CHANGELOG.md chore: release master (#1957) 2024-04-30 17:50:00 +02:00
package.json chore: release master (#1957) 2024-04-30 17:50:00 +02:00
rollup.config.js chore: upgrade libp2p and related deps (#1482) 2023-08-16 20:18:13 +05:30
tsconfig.dev.json chore: move libp2p and byte utils to a single `utils` package (#1149) 2023-02-06 11:22:36 +05:30
tsconfig.json chore: move libp2p and byte utils to a single `utils` package (#1149) 2023-02-06 11:22:36 +05:30
typedoc.json chore: update typescript (#1528) 2023-09-21 10:57:37 +02:00