Module to handle conflux-web RPC connections over WebSockets.

useless version
Last updated a year ago by liuis .
LGPL-3.0 · Repository · Original npm · Tarball · package.json
$ cnpm install conflux-web-providers-ws 
SYNC missed versions from official npm registry.


This is a sub package of conflux-web

This is a websocket provider for conflux-web.
Please read the documentation for more.



npm install conflux-web-providers-ws

In the Browser

Build running the following in the conflux-web repository:

npm run-script build-all

Then include dist/conflux-web-providers-ws.js in your html file. This will expose the ConfluxWebWsProvider object on the window object.


// in node.js
var ConfluxWebWsProvider = require('conflux-web-providers-ws');

var options = { timeout: 30000, headers: {authorization: 'Basic username:password'} } // set a custom timeout at 30 seconds, and credentials (you can also add the credentials to the URL: ws://username:password@localhost:8546)
var ws = new Web3WsProvider('ws://localhost:8546', options);

Current Tags

  • 1.2.2-alpha.1                                ...           latest (a year ago)

2 Versions

  • 1.2.2-alpha.1 [deprecated]           ...           a year ago
  • 1.2.2-alpha.0                                ...           a year ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (3)
Dev Dependencies (0)

Copyright 2014 - 2016 © |