{"_id":"@danielsmilo/web3providerswsdaniel","_rev":"1-f7880bd96f3b9ce39b1f721040cd7961","name":"@danielsmilo/web3providerswsdaniel","dist-tags":{"latest":"1.0.0-beta.42"},"versions":{"1.0.0-beta.42":{"name":"@danielsmilo/web3providerswsdaniel","namespace":"ethereum","version":"1.0.0-beta.42","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","@danielsmilo/web3corehelpersdaniel":"1.0.0-beta.42","websocket":"git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible"},"_id":"@danielsmilo/web3providerswsdaniel@1.0.0-beta.42","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"danielsmilo","email":"daniel@smilo.io"},"dist":{"integrity":"sha512-3Mo3SIeWLM04XwXeilJMFM3SK3I78s7iH5JoY/hbxQbvhFCf53jBMPQuFk9z9aoKUOW1E6gigPuDndg5fRy20A==","shasum":"b5457d5320e503459dbbc061bb2ae43812f609c2","tarball":"https://registry.npmjs.org/@danielsmilo/web3providerswsdaniel/-/web3providerswsdaniel-1.0.0-beta.42.tgz","fileCount":3,"unpackedSize":12646,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcb7j0CRA9TVsSAnZWagAA+EUP/jZ402lyHbobBCS99r8U\nb5GnOcRb6KQPEWCE2KXeugqlt2Xr14Tcw+uMoPrN0LP3R0DlG0ZRB8U+nSI3\nidMBr/cs5EIeLjR7yz6ybZLUU5YNa5wAy9sv7hPfMc+qoRidLVS1fgJL2E+Y\n8276OraxX7nrWBcrLq6Y5CZj7gAAt7StWoltT0jkOZjVOcZtl/T4xP83nrkS\nbfvFXEpyITgdSxfymXLHSXMuiz7Jgg6l1QNTiMeh4cfdXWHuuTXCr2wh9HPd\n4y9eac9OtxHQ1rU5Q4ZtzPGLw0MdqEgSbYZ6BguASQ14/7WFHCHvVZ4ue7/5\nbDqpYJrG06R7W/9HsiBvx+P3Pk1fLgthonypP/G0BGc5Gf7q2RWIeg++9WuK\nKrcgyVdr4M3ZoU3+Y3KWcq0mY54bLmTo3Zdvgb9/+XzoJ4yGd+OsaZqX6sBC\nKJVyIuJfaYlxtmChSQBctWHv6MHnL7SkvsUZ0gY175S6Iad0SQ1eo0o2eJ+i\nvYZCRnXeNdXDeHQog7y9vG90CGzSrJxS71JEx6KUmHYa9tYzQf4kLa3+hClf\nw2YjJpJ2iwY8mjlnMswh+0xKWxnLfurMhRoFUP6/WIVcJtQDejrFS/Q57Wt4\nOInsZaA31U1OQm/5Pi/yWKq+SsWm/eivjVDl1zzX0KOY9txMU/rRaY16SAF4\ng7CC\r\n=wV5R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCeJSXjzavywupJTLKdF0+Fqk7a9h+l2GMrCyLAemFwBAIgHpH4wCBrgKe+tfPEPd5BN8qB/lSCOdqGf+0lIQWn93c="}]},"maintainers":[{"name":"danielsmilo","email":"daniel@smilo.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web3providerswsdaniel_1.0.0-beta.42_1550825716492_0.8533526653563805"},"_hasShrinkwrap":false}},"time":{"created":"2019-02-22T08:55:16.316Z","1.0.0-beta.42":"2019-02-22T08:55:16.585Z","modified":"2022-04-05T02:41:31.285Z"},"maintainers":[{"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('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"}