conflux-web-core-requestmanager
This is a sub package of conflux-web
The requestmanager package is used by most conflux-web packages.
Please read the documentation for more.
Installation
Node.js
npm install conflux-web-core-requestmanager
In the Browser
Build running the following in the conflux-web repository:
npm run-script build-all
Then include dist/conflux-web-core-requestmanager.js
in your html file.
This will expose the ConfluxWebRequestManager
object on the window object.
Usage
var ConfluxWebWsProvider = require('conflux-web-providers-ws');
var ConfluxWebRequestManager = require('conflux-web-core-requestmanager');
var requestManager = new ConfluxWebRequestManager(new Web3WsProvider('ws://localhost:8546'));