Socket
Socket
Sign inDemoInstall

web3-providers-ws

Package Overview
Dependencies
Maintainers
2
Versions
416
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.2.9-rc.0 to 1.2.9

6

package.json
{
"name": "web3-providers-ws",
"version": "1.2.9-rc.0",
"version": "1.2.9",
"description": "Module to handle web3 RPC connections over WebSockets.",

@@ -18,3 +18,3 @@ "repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-providers-ws",

"underscore": "1.9.1",
"web3-core-helpers": "1.2.9-rc.0",
"web3-core-helpers": "1.2.9",
"websocket": "^1.0.31"

@@ -26,3 +26,3 @@ },

},
"gitHead": "7d94fdb22808ee95de326208f6086fb29ad6bca1"
"gitHead": "0e7ee3325437f73f4bace6c2df06aefafd72c716"
}

@@ -44,6 +44,10 @@ # web3-providers-ws

// Useful if requests are large
clientConfig: {
// Useful if requests are large
maxReceivedFrameSize: 100000000, // bytes - default: 1MiB
maxReceivedMessageSize: 100000000, // bytes - default: 8MiB
// Useful to keep a connection alive
keepalive: true,
keepaliveInterval: 60000 // ms
},

@@ -61,8 +65,6 @@

var ws = new Web3WsProvider('ws://localhost:8546', options);
```
(Additional client config options can be found [here][1])
Additional client config options can be found [here](https://github.com/theturtle32/WebSocket-Node/blob/v1.0.31/docs/WebSocketClient.md#client-config-options).
[1]: https://github.com/web3-js/WebSocket-Node/blob/polyfill/globalThis/docs/WebSocketClient.md
```
## Types

@@ -69,0 +71,0 @@

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