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