{"_id":"@didux-io/web3-providers-ws","_rev":"1-2ee21c310ac68270f45f2516f8c8c540","name":"@didux-io/web3-providers-ws","dist-tags":{"latest":"1.0.0-beta.53"},"versions":{"1.0.0-beta.53":{"name":"@didux-io/web3-providers-ws","namespace":"ethereum","version":"1.0.0-beta.53","description":"Module to handle web3 RPC connections over WebSockets.","repository":{"type":"git","url":"https://github.com/ethereum/web3.js/tree/master/packages/web3-providers-ws"},"license":"LGPL-3.0","main":"src/index.js","dependencies":{"underscore":"1.8.3","@didux-io/web3-core-helpers":"1.0.0-beta.53","websocket":"git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible"},"_id":"@didux-io/web3-providers-ws@1.0.0-beta.53","_npmVersion":"6.1.0","_nodeVersion":"10.6.0","_npmUser":{"name":"danielsmilo","email":"daniel@smilo.io"},"dist":{"integrity":"sha512-RxT7JeiWDJaVAbJq0Z3r4NdisdV7+ijhL66PC0vUpbXy6aEPazzcKwI0JTxl4EOlVbpr9I9YgQUaN/wt5OOjmw==","shasum":"a52764fea1bb25ee3211978a948295d023ea5b0f","tarball":"https://registry.npmjs.org/@didux-io/web3-providers-ws/-/web3-providers-ws-1.0.0-beta.53.tgz","fileCount":3,"unpackedSize":12652,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5ldtCRA9TVsSAnZWagAAEwIP/3c8z5SOElSZESDCu+mq\ntLRU4HMGrNGH1nXOTY/zstAavDo4CMj0fWIGJtbevvR/O1HTIcrwjLIKBU6C\nsfRRjVwUMmjRffE1MZwmuP/vdsmeQaxNfJa2KyRfxP/mny7pE8JB9Mdn1YLw\nMzTu11jfSE9DEtlolb+CXwCNr7I06RjYyc+2ZOdhe1tojDr7yjIx406Kp/hu\nsYv7e2Tj07Jmg1D04h+iZwnXrrVJb9UaDOTlC2R25uwpHrWiN+ucmUooYjlw\nueK1HAw1FmYTDcwIuadQonWJAe2s6oXPi4le0i+Iht1kBxBJreBA5ZwvO0z5\nFr9gorNOjEIi31EqPEzUTH46yyPA5aJstAMUnSLMx1SfPQ0cjFgEIOp14NyG\nynw8/so2ZHSDGXXkKbytuzNWkjwRezCAF+54z1bSFlG5CYLzkNhu9rj0b/Oa\n4DQWDjjjOl7Fa08fO77yqTjSW+IUHXh9ooVIZpdvYo2geDoSPy4fWuyrAN/R\nCUCAeH9zffARuHoU9AKei/wzC9fRDmAVD5cLSFl8lTsjTCVxVyKcyE6iTjL1\n25lfbSGuVa8G7K3ZPJZculFX97eBpL+426/Y1tJUynxC0MOo+hHh2s394XpB\n31Ll7bJN09pDtZ3tgem0m48T+DB2ETozzH7/n4P0VBtSd5tL8hoFf6loYv81\n7rvu\r\n=s6Uq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEO9NMQ61g8q7NsT4UzjSOznvGTFfI7qqe9AnjTqx5iOAiBpoxz9ro+S8VNmKzDq2172llT0eBLS614361Zq3psAIQ=="}]},"maintainers":[{"name":"elkan","email":"info@smilo.io"},{"name":"danielsmilo","email":"daniel@smilo.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web3-providers-ws_1.0.0-beta.53_1575376749218_0.3224794116706524"},"_hasShrinkwrap":false}},"time":{"created":"2019-12-03T12:39:09.006Z","1.0.0-beta.53":"2019-12-03T12:39:09.402Z","modified":"2022-04-05T04:23:54.248Z"},"maintainers":[{"name":"elkan","email":"info@smilo.io"},{"name":"danielsmilo","email":"daniel@smilo.io"}],"description":"Module to handle web3 RPC connections over WebSockets.","repository":{"type":"git","url":"https://github.com/ethereum/web3.js/tree/master/packages/web3-providers-ws"},"license":"LGPL-3.0","readme":"# web3-providers-ws\n\nThis is a sub package of [web3.js][repo]\n\nThis is a websocket provider for [web3.js][repo].   \nPlease read the [documentation][docs] for more.\n\n## Installation\n\n### Node.js\n\n```bash\nnpm install web3-providers-ws\n```\n\n### In the Browser\n\nBuild running the following in the [web3.js][repo] repository:\n\n```bash\nnpm run-script build-all\n```\n\nThen include `dist/web3-providers-ws.js` in your html file.\nThis will expose the `Web3WsProvider` object on the window object.\n\n\n## Usage\n\n```js\n// in node.js\nvar Web3WsProvider = require('@didux-io/web3-providers-ws');\n\nvar 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)\nvar ws = new Web3WsProvider('ws://localhost:8546', options);\n```\n\n\n[docs]: http://web3js.readthedocs.io/en/1.0/\n[repo]: https://github.com/ethereum/web3.js\n","readmeFilename":"README.md"}