npl-broker

1.3.2 • Public • Published

npl-broker (NPLBroker)

NPM

npm bundle size

npl-broker is a core library that can be easily integrated into your HotPocket (d)app. It serves as an intermediary module to manage the messages sent and received in the NPL stream. This ensures that HotPocket (d)apps and its dependencies, which utilize NPL, can effectively transport data within a standardized format.

npl-broker provides additional features for sub-consensus messaging via the NPL stream that HotPocket doesn't provide out-of-the-box, such as:

  1. Tagged NPL messages
  2. Live NPL stream (The default approach to sub-consensus messaging is opt-able)
  3. Chunk transfer for large content transfers
  4. Content integrity verification

Installation

npm install npl-broker

Testing

The /test directory includes general HP dApps that showcases NPLBroker. Running this will result in a unit test:

sudo npm test

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.3.2
    4
    • latest

Version History

Package Sidebar

Install

npm i npl-broker

Weekly Downloads

4

Version

1.3.2

License

MIT

Unpacked Size

390 kB

Total Files

16

Last publish

Collaborators

  • wojake