{"name":"apollo-link-ws","version":"1.0.9","description":"WebSocket transport layer for GraphQL","author":{"name":"Evans Hauser","email":"evanshauser@gmail.com"},"contributors":[{"name":"James Baxley","email":"james@meteor.com"},{"name":"Jonas Helfer","email":"jonas@helfer.email"},{"name":"jon wong","email":"j@jnwng.com"},{"name":"Sashko Stubailo","email":"sashko@stubailo.com"}],"license":"MIT","main":"./lib/bundle.umd.js","module":"./lib/index.js","jsnext:main":"./lib/index.js","typings":"./lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-link.git"},"bugs":{"url":"https://github.com/apollographql/apollo-link/issues"},"homepage":"https://github.com/apollographql/apollo-link#readme","scripts":{"build:browser":"browserify ./lib/bundle.umd.js -o=./lib/bundle.js --i apollo-link && npm run minify:browser","build":"tsc -p .","bundle":"rollup -c","clean":"rimraf lib/* && rimraf coverage/*","coverage":"jest --coverage","filesize":"npm run build && npm run build:browser","lint":"tslint --type-check -p tsconfig.json -c ../../tslint.json src/*.ts","minify:browser":"uglifyjs -c -m -o ./lib/bundle.min.js -- ./lib/bundle.js","postbuild":"npm run bundle","prebuild":"npm run clean","prepublishOnly":"npm run clean && npm run build","test":"jest","watch":"tsc -w -p . & rollup -c -w"},"dependencies":{"apollo-link":"^1.2.3"},"peerDependencies":{"subscriptions-transport-ws":"^0.9.0"},"devDependencies":{"@types/graphql":"14.0.0","@types/jest":"22.2.3","browserify":"16.2.2","graphql":"14.0.2","graphql-tag":"2.9.2","jest":"22.4.4","rimraf":"2.6.1","rollup":"0.65.2","subscriptions-transport-ws":"0.9.14","ts-jest":"22.4.6","tslint":"5.11.0","typescript":"3.0.3","uglify-js":"3.4.9"},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js","json"],"mapCoverage":true,"testURL":"http://localhost"},"_id":"apollo-link-ws@1.0.9","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"dist":{"integrity":"sha512-CtKwLE61bCJTW5jrucOMm5PubeAlCl/9i45pg4GKKlAbl0zR4i2dww8TJkYoIY6iCyj4qjKW/uqGD6v5/aVwhg==","shasum":"e2198abd6d3900e83fd842fdee335a28b347ea2d","tarball":"http://registry-npm.ywwl.com/apollo-link-ws/download/apollo-link-ws-1.0.9.tgz","fileCount":16,"unpackedSize":16595,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbnNIrCRA9TVsSAnZWagAAlcsQAIcW7X7TNAPHJ10rmR5P\nTZ2ZNS2A12AfsHMYU12JgzXBO+LFGlDBKgjnykMjV+qHhkaS+tSP9tyEW7rL\n5RbR/G12jaBjAuJFQWmuNsL9vSH0VgomYDbiEVxNqq9zVd3DIsi/kJCuanhT\n0iNg+DJw7XqOeoVAWh54DFEzyVVzHDj9J4kaM4Bp5q03jkwMPW2rySFgINAi\nEJTo4UoBniid7qCBRpqsBDHAhVKFPqkoMJWfvH0I10oSv1BVZ4UT8kqL3EqX\ns8wY/syFcqTwp0I5Nl5zKhMzV85X0N5YCK/4vOLmemCZnaP3ri8ZXXXdm2Ms\n9ZM59fR2P6KcFDCDTLM5vRa17/rOILFdPlGO2Uj6KTfXc8IwcV3SiF44Un16\nctb/0vbJr7LaPuFFa1I0apsBHgwS/Dva8k4aKnUSQTGGBExo5vpRiOdNX9C5\nYY9OSmO4nD4XMuOWVwBlL9rc1ZtGYqnZoLBtqJYlMvyJabtdlNcP3hoo5b6N\nVSa/0nf41jjDVxpo1lOkC0J0UmaWwZ3Sn9eBzixTJE7JnQ2WDwSkJdY4jBo7\nLO1o8z4wjHznDDKdsrX8xpnNV+TdDu599k0pw4gqXJhNFxqXFq6CalReCnk8\nEojr+K0puBuVYuKJ6x8TEm6RiUsHNMic29RnsGT+yg0MLzyr6cLUFle/91vz\nE/Zg\r\n=a6Lv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDbi4t7j1f9B71CNjF4gg/KIbhjc+ejk7M9frPDcVy2zAiBrNb9QXgHJTlmRIEEnbeCivsBe//TcYuvCoNPgZ2RkTw=="}],"size":4926,"noattachment":false,"key":"/apollo-link-ws/-/apollo-link-ws-1.0.9.tgz"},"maintainers":[{"name":"evanshauser","email":"evanshauser@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"},{"name":"mdg","email":"npm@meteor.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-link-ws_1.0.9_1537004074566_0.7876522658466703"},"_hasShrinkwrap":false,"readme":"---\ntitle: apollo-link-ws\ndescription: Send GraphQL operations over a WebSocket. Works with GraphQL Subscriptions.\n---\n\nThis link is particularly useful to use GraphQL Subscriptions, but it will also allow you to send GraphQL queries and mutations over WebSockets as well.\n\n```js\nimport { WebSocketLink } from \"apollo-link-ws\";\nimport { SubscriptionClient } from \"subscriptions-transport-ws\";\n\nconst GRAPHQL_ENDPOINT = \"ws://localhost:3000/graphql\";\n\nconst client = new SubscriptionClient(GRAPHQL_ENDPOINT, {\n  reconnect: true\n});\n\nconst link = new WebSocketLink(client);\n```\n\n## Options\n\nWS Link takes either a subscription client or an object with three options on it to customize the behavior of the link. Takes the following possible keys in the configuration object:\n\n* `uri`: a string endpoint to connect to\n* `options`: a set of options to pass to a new Subscription Client\n* `webSocketImpl`: a custom WebSocket implementation\n\nBy default, this link uses the [subscriptions-transport-ws](https://github.com/apollographql/subscriptions-transport-ws) library for the transport.\n","publish_time":1537004074708,"_cnpm_publish_time":1537004074708,"dist-tags":{"beta":"2.0.0-beta.0","latest":"1.0.20"}}