Files
hpcore/examples/js_client
Ravin Perera 6dc0776b56 Large cluster optimizations. (#348)
* Added sync log to streamer.
* Fixed ledger closing attempt while syncing.
* Added diagnostic contract.
* Reset to stage 0 on unreliable votes.
* Reduced peer msg age threshold.
* Added health tracking.
* Weakly-connected detection improvement.
* Increased version 0.5.1.
* Improved client lib server version check.
* Added health logging support to text client.
* Added weakly connected status in status response.
* Increased max peers limits when serializing.
* Local docker cluster manual ip.
* Updated vultr script vm region order.
* Sync status reporting improvement.
* Added milliseconds to logging.
2021-09-17 11:53:49 +05:30
..
2021-09-17 11:53:49 +05:30

Hot Pocket javascript client library and examples

Single-file javascript library to support json and bson protocols in NodeJs and Browser environments.

NodeJs

  1. Run npm install to install all the dependencies.
  2. lib/hp-client-lib.js is the Hot Pocket client library for NodeJs.
  3. text-client.js is the example for json mode.
  4. file-client.js is the example for bson mode.

Browser

  1. Run npm install to install all the compilation dependencies.
  2. Run npm run build-browser to produced the minified library for the browser.
  3. browser-example.html is the simple html/javascript example for json mode.

(For BSON support in browser, a slightly modified version of https://www.npmjs.com/package/bson is used. The minified library includes this bson support library as well)