Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

conflux-web-providers-ws

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conflux-web-providers-ws

Module to handle conflux-web RPC connections over WebSockets.

  • 1.2.2-alpha.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 05 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc