{"name":"apollo-link-ws","version":"1.0.12","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.6"},"peerDependencies":{"subscriptions-transport-ws":"^0.9.0"},"devDependencies":{"@types/graphql":"14.0.3","@types/jest":"22.2.3","browserify":"16.2.3","graphql":"14.0.2","graphql-tag":"2.10.0","jest":"22.4.4","rimraf":"2.6.1","rollup":"0.67.4","subscriptions-transport-ws":"0.9.15","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.12","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"dist":{"integrity":"sha512-BjbskhfuuIgk9e4XHdrqmjxkY+RkD1tuerrs4PLiPTkJYcQrvA8t27lGBSrDUKHWH4esCdhQF1UhKPwhlouEHw==","shasum":"e343bb0c071f2db0ae147a2327f03cc1740d0c2d","tarball":"http://registry-npm.ywwl.com/apollo-link-ws/download/apollo-link-ws-1.0.12.tgz","fileCount":11,"unpackedSize":11772,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcFF73CRA9TVsSAnZWagAAyuAP/j4IGlMsoiZJbLOOfid2\nciZp1b+bPnsXaTp4fIySOnDg7CgWd4K8BE414jQeirUWWSQVirjDROeRKuUJ\nyxfT9kgjwijKVyq3pFaKWEaHddXRM2rpq63HtgWWs5zNUD1UsUg2bdtc0i9o\n+zEnblxb6eZggzM39YeYzNBvNKMGOJ3g1SVQSDkPEf8nu2WnI2ga5CgTOGec\nTNDnX4kTnI0zQz8HOjJQQIWMQ/HIW5L9R/+9IY3GaM9kDVTeJwd3MYhDz67L\nFvPSlKpNXwCP2Duxi/vrRlnhaFAy5IX8rPYbAcY0SGNpyMZOK8Q38c3alwiu\nmeaFM6trrfO2j9ErUbNKLMPUZsG9BmdO31vI3LsC7EUmWaHSxC5/i0QuRloU\ngY8sIqJiAySaDKJNhL0Jr3eeTBmLidWogUGXRZYc3HX9fJ/RCmyXkob9xBmP\nd5xJYZ2oOcKLOr7LjUTkGcFEVhwnvG3UVww0JvyWsFvpzYkBOgG/XU8OF2lV\nLcX6K6ojBX9PTl6B5HuKzzPUcwv4/iyr4EMvq+NCaOHrKltdUa4Vl9NOPNlQ\ntSeodmU/kgiZzOYkIFMBjq1hJIh4cIORnlV/PtnVuVsQZoqpFtFv2gFf7QWc\nQKoXV7B7g4VPJQyU/tmELUDhiPwWy//8OSTOnP7BOPBtfD7nsYOHI/+yfv6r\nkcYQ\r\n=ST1d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0hiTACRVLEUZFwBFplnncDabD4J27ui2ToQoPWOCZEgIgBTMjzN+9BWXop+xETue7/fkKOAdOu2CmKzFl7pohy9U="}],"size":3971,"noattachment":false,"key":"/apollo-link-ws/-/apollo-link-ws-1.0.12.tgz"},"maintainers":[{"email":"npm@apollographql.com","name":"apollo-bot"},{"email":"evanshauser@gmail.com","name":"evanshauser"},{"email":"james@meteor.com","name":"jbaxleyiii"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-link-ws_1.0.12_1544838902503_0.17762370105410907"},"_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":1544838902649,"_cnpm_publish_time":1544838902649,"dist-tags":{"beta":"2.0.0-beta.0","latest":"1.0.20"}}