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

web3-providers-ws

Package Overview
Dependencies
Maintainers
1
Versions
454
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-providers-ws - npm Package Compare versions

Comparing version 1.0.0-beta.30 to 1.0.0-beta.31

4

package.json
{
"name": "web3-providers-ws",
"namespace": "ethereum",
"version": "1.0.0-beta.30",
"version": "1.0.0-beta.31",
"description": "Module to handle web3 RPC connections over WebSockets.",

@@ -11,5 +11,5 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-providers-ws",

"underscore": "1.8.3",
"web3-core-helpers": "1.0.0-beta.30",
"web3-core-helpers": "1.0.0-beta.31",
"websocket": "git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible"
}
}

@@ -71,3 +71,3 @@ /*

if(_.isFunction(callback))
callback(null, result);
callback(result);
});

@@ -96,15 +96,7 @@

this.connection.onclose = function(e){
this.connection.onclose = function(){
_this._timeout();
var noteCb = _this.notificationCallbacks;
// reset all requests and callbacks
_this.reset();
// cancel subscriptions
noteCb.forEach(function (callback) {
if (_.isFunction(callback))
callback(e);
});
};

@@ -194,3 +186,3 @@

if(this.responseCallbacks.hasOwnProperty(key)){
this.responseCallbacks[key](errors.InvalidConnection('on IPC'));
this.responseCallbacks[key](errors.InvalidConnection('on WS'));
delete this.responseCallbacks[key];

@@ -342,2 +334,1 @@ }

module.exports = WebsocketProvider;
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