mitweb3-providers-ipc
v0.1.0
Published
Module to handle MitWeb3 RPC connections over IPC sockets.
Downloads
12
Readme
mitweb3-providers-ipc
This is a sub package of mitweb3.js
This is a IPC provider for mitweb3.js.
Installation
Node.js
npm install mitweb3-providers-ipc
In the Browser
Build running the following in the mitweb3.js repository:
npm run-script build-all
Then include dist/mitweb3-providers-ipc.js
in your html file.
This will expose the Web3IpcProvider
object on the window object.
Usage
// in node.js
var Web3IpcProvider = require('mitweb3-providers-ipc');
var net = require(net);
var ipc = new Web3IpcProvider('tmit.ipc', net);