{"_id":"universal-websocket-client","_rev":"6-ab619eb8b4e89b17f8a13f4fc3e12e32","name":"universal-websocket-client","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"universal-websocket-client","version":"1.0.0","keywords":["websocket","client","browser","node","isomorphic","universal"],"author":{"name":"Gabriel Grant","email":"g@briel.ca"},"license":"ISC","_id":"universal-websocket-client@1.0.0","maintainers":[{"name":"gabrielgrant","email":"g@briel.ca"}],"dist":{"shasum":"f80a5f16e1f7670d91b93da12a1f1bd691942e90","tarball":"https://registry.npmjs.org/universal-websocket-client/-/universal-websocket-client-1.0.0.tgz","integrity":"sha512-eU6M+mMKS87g1ueEfXMHEz2qp5GvXJB2tAyE/3sdimoc2j83nf22kS8b+avZc8PnTN5e3rGygS+qLYJCDXziyA==","signatures":[{"sig":"MEUCIQCkEZncvuv5p/JIXpVRRRUME3PrKb/z63qq05Dap1d1uAIgDCnLsTBh1dLbkCHLXYOLAdRLijPC5k7hZy1Chfy1THo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"f80a5f16e1f7670d91b93da12a1f1bd691942e90","browser":"browser.js","gitHead":"0d4f83304250b735e3b3de8c4cb170f7c572e2ae","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"gabrielgrant","email":"g@briel.ca"},"repository":{"url":"github.com/gabrielgrant/javascript-universal-websocket-client","type":"git"},"_npmVersion":"3.10.3","description":"Use the same WebSocket client code in a browser or Node.js for isomorphic apps","directories":{},"_nodeVersion":"6.3.0","dependencies":{"ws":"^2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/universal-websocket-client-1.0.0.tgz_1488428856283_0.015891413437202573","host":"packages-18-east.internal.npmjs.com"}},"1.0.1":{"name":"universal-websocket-client","version":"1.0.1","keywords":["websocket","client","browser","node","isomorphic","universal"],"author":{"name":"Gabriel Grant","email":"g@briel.ca"},"license":"ISC","_id":"universal-websocket-client@1.0.1","maintainers":[{"name":"gabrielgrant","email":"g@briel.ca"}],"dist":{"shasum":"ad7c00e22cea16a2a83d6ab5e67ada2928dbe96f","tarball":"https://registry.npmjs.org/universal-websocket-client/-/universal-websocket-client-1.0.1.tgz","integrity":"sha512-IXGwuDr27cwy8/BpCoXu9d/TKVrbtcy7a/hQN1a6jghfs/1mI1PHfVyNPeZZWkCibYUzUoCA3bkS6/n969j9+Q==","signatures":[{"sig":"MEQCIEpnWKSG6QE57T4peNIVH+NSsvi/xueX6BAI37YQ9X14AiBg8x30vS40yzvCmSJgbaGA6Rf4gyf+SZyQ5DZahF+l+A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"ad7c00e22cea16a2a83d6ab5e67ada2928dbe96f","browser":"browser.js","gitHead":"9ba854f66da6b4b2df48c1f1b7993bbca6d5523b","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"gabrielgrant","email":"g@briel.ca"},"repository":{"url":"github.com/gabrielgrant/javascript-universal-websocket-client","type":"git"},"_npmVersion":"3.10.3","description":"Use the same WebSocket client code in a browser or Node.js for isomorphic apps","directories":{},"_nodeVersion":"6.3.0","dependencies":{"ws":"^2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/universal-websocket-client-1.0.1.tgz_1488440069743_0.6387683069333434","host":"packages-18-east.internal.npmjs.com"}},"1.0.2":{"name":"universal-websocket-client","version":"1.0.2","keywords":["websocket","client","browser","node","isomorphic","universal"],"author":{"name":"Gabriel Grant","email":"g@briel.ca"},"license":"ISC","_id":"universal-websocket-client@1.0.2","maintainers":[{"name":"gabrielgrant","email":"g@briel.ca"}],"homepage":"https://github.com/gabrielgrant/javascript-universal-websocket-client#readme","bugs":{"url":"https://github.com/gabrielgrant/javascript-universal-websocket-client/issues"},"dist":{"shasum":"9942307a9d418bb5defd33594048c7e367448b44","tarball":"https://registry.npmjs.org/universal-websocket-client/-/universal-websocket-client-1.0.2.tgz","fileCount":17,"integrity":"sha512-Pi6BdJtEAISb77GTbOLBLIWdYGezXgnJejrVBYKXxzNTsLcjJS+mWIJ2BRZElSlOG/wc7+yfOe5y30bzTu3Qqg==","signatures":[{"sig":"MEQCIHJk8tYdqgHfvT2n4OUZXlFhX+ISEleA7Aogcit6Cm3fAiAL/FqpGX+KVkXGM/0l6Fhq/lqAW909tSSUWSbOEhZ6fA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11602,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbFvACCRA9TVsSAnZWagAAsNIP/1sfjLHglxA3uy3lCEQH\ncdBRSmt9Bp1QxAeyYZyJRrd0VjQiNOd/t6Kw2k88FOCg75Kpv4laU15qrQMP\nuZ9xRLlzWPRZyyVlgZSsUpxQPQ7KBt7OU5KkkGBa9cPsfJsbW9OeA/9UzFtK\nqVQtUZMgWpc6fWX5nW70K92IrnstnoorTWr1HuoeXFehwHr+HMtq3wu5UQyU\nTpGNEG1Var80oTLq0Smx1kV5BcmH+y6h8cDEHsJwt29V3Rk6J88bHDxdZUeu\ntRWFPxepDGkZP6ikxvKwWaYHnP4KbwOOMO9AKANJypxcMTFeq7XBGfuz2kKC\nr9UrY74TPUWH+GSdbEgOJDgcIvpVW+rCiiLM84EpsLlBzmq5haLgSXV6jj28\noauaksA5whMlvC7lXgHNcmIFs+dc4ccv39KSp3PwGFjzBWmvylQklWPuDch4\nWqO1NjTj85NxLIu+BYannsv+q/7f8TO3Ar4suugfbWPsrJkNTBJg88P+9IsN\nzHp5Xs5n6jA9hDWBB1JbmqJ/xk2y2QGuef1MGoQe7KYQ8ZyPD890FBaHuXQS\nkJoQ03F4/mQ9c++5LdZTYa+vVEDiyKjsDqdBYKG6rk+izcgG3e6VXfl60jAt\nhtEtC8WZba+W+vXrnSLKEECf6PnAAojHGBd5dOPbesrTK+qCfmL37y/FMHKL\nP/rC\r\n=2MQN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","browser":"browser.js","gitHead":"eeda899a827dff09311f43b782b8e6b0af38267a","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"gabrielgrant","email":"g@briel.ca"},"repository":{"url":"git+https://github.com/gabrielgrant/javascript-universal-websocket-client.git","type":"git"},"_npmVersion":"6.1.0","description":"Use the same WebSocket client code in a browser or Node.js for isomorphic apps","directories":{},"_nodeVersion":"8.4.0","dependencies":{"ws":"^3.3.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/universal-websocket-client_1.0.2_1528229882825_0.553019622829481","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"universal-websocket-client","version":"1.0.3","description":"Use the same WebSocket client code in a browser or Node.js for isomorphic apps","main":"index.js","browser":"browser.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/gabrielgrant/javascript-universal-websocket-client.git"},"keywords":["websocket","client","browser","node","isomorphic","universal"],"author":{"name":"Gabriel Grant","email":"g@briel.ca"},"license":"ISC","dependencies":{"ws":"^8.18.0"},"_id":"universal-websocket-client@1.0.3","gitHead":"654d373da8b1833ace8314a1bbae767b03f6e8ad","bugs":{"url":"https://github.com/gabrielgrant/javascript-universal-websocket-client/issues"},"homepage":"https://github.com/gabrielgrant/javascript-universal-websocket-client#readme","_nodeVersion":"18.18.0","_npmVersion":"10.3.0","dist":{"integrity":"sha512-ZQF2hSasp4IM7Y3E+IAkA40c6kclsfhpligALvnuecEnU1dTJQZ5XlgXWLt3C8+uizDw5x48kCMBDPnLg/EVzA==","shasum":"ea37a0907d017c840a97c9c83c14768a2fc6cd2f","tarball":"https://registry.npmjs.org/universal-websocket-client/-/universal-websocket-client-1.0.3.tgz","fileCount":10,"unpackedSize":6883,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDtSbQzF7mP+myVuo8XZtMKhCPqQg4o9XoKgE2ggcVzxAIhAPuoI7i2fjOxy6kYeKWjZHFr0Kyw4MLYsmidLbL9U73d"}]},"_npmUser":{"name":"gabrielgrant","email":"g@briel.ca"},"directories":{},"maintainers":[{"name":"gabrielgrant","email":"g@briel.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/universal-websocket-client_1.0.3_1739844478068_0.26759057183721846"},"_hasShrinkwrap":false}},"time":{"created":"2017-03-02T04:27:38.085Z","modified":"2025-02-18T02:07:58.446Z","1.0.0":"2017-03-02T04:27:38.085Z","1.0.1":"2017-03-02T07:34:31.530Z","1.0.2":"2018-06-05T20:18:03.489Z","1.0.3":"2025-02-18T02:07:58.242Z"},"bugs":{"url":"https://github.com/gabrielgrant/javascript-universal-websocket-client/issues"},"author":{"name":"Gabriel Grant","email":"g@briel.ca"},"license":"ISC","homepage":"https://github.com/gabrielgrant/javascript-universal-websocket-client#readme","keywords":["websocket","client","browser","node","isomorphic","universal"],"repository":{"type":"git","url":"git+https://github.com/gabrielgrant/javascript-universal-websocket-client.git"},"description":"Use the same WebSocket client code in a browser or Node.js for isomorphic apps","maintainers":[{"name":"gabrielgrant","email":"g@briel.ca"}],"readme":"Uses the native WebSocket client code in a browser and the [ws package client](https://www.npmjs.com/package/ws) on Node.js, enabling isomorphic applications to use WebSockets. Keeps your browser build slim, by not including any of the Node WebSocket implementation.\n\n\nInstallation \n============\n\n```\nnpm install --save universal-websocket-client\n```\n\nUsage\n=====\n\n```\nvar WebSocket = require('universal-websocket-client');\n\n\\\\ ... use the [WebSocket client interface](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket).\n```\n\nOn the client side, you'll now need to use [browserify](http://browserify.org/) (or Webpack or something similar) to bundle your code.\n\nSee [`tests/browser`](tests/browser) and [`tests/node`](tests/node)\n\n\nRun Tests\n=========\n\nThese are end-to-end tests, that test the installed the package.\n\nNode\n----\n\n```\ncd tests/browser/\nnpm install\nnpm test\n```\n\nBrowser\n-------\n\n```\ncd tests/node/\nnpm install\nnpm test\n```\n\nThen visit [`http://localhost:8000`](http://localhost:8000)\n","readmeFilename":"README.md"}