This package has been deprecated

Author message:

useless version

conflux-web-providers-ws

1.2.2-alpha.1 • Public • Published

conflux-web-providers-ws

This is a sub package of conflux-web

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

Installation

Node.js

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.

Usage

// 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);

/conflux-web-providers-ws/

    Package Sidebar

    Install

    npm i conflux-web-providers-ws

    Weekly Downloads

    1

    Version

    1.2.2-alpha.1

    License

    LGPL-3.0

    Unpacked Size

    13.8 kB

    Total Files

    4

    Last publish

    Collaborators

    • liuis