susyweb-providers-ipc
v1.0.0-beta.37
Published
Module to handle susyweb RPC connections over IPC sockets.
Downloads
5
Readme
susyweb-providers-ipc
This is a sub package of susyweb.js
This is a IPC provider for susyweb.js.
Please read the documentation for more.
Installation
Node.js
npm install susyweb-providers-ipc
In the Browser
Build running the following in the susyweb.js repository:
npm run-script build-all
Then include dist/susyweb-providers-ipc.js
in your html file.
This will expose the SusyWebIpcProvider
object on the window object.
Usage
// in node.js
var SusyWebIpcProvider = require('susyweb-providers-ipc');
var net = require(net);
var ipc = new SusyWebIpcProvider('/Users/me/Library/Sophon/graviton.ipc', net);