Skip to content

Latest commit

 

History

History
executable file
·
27 lines (18 loc) · 999 Bytes

README.md

File metadata and controls

executable file
·
27 lines (18 loc) · 999 Bytes

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