{"name":"apollo-link-ws","version":"1.0.16","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/index.js","module":"./lib/bundle.esm.js","typings":"./lib/index.d.ts","sideEffects":false,"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":"tsc && rollup -c","clean":"rimraf lib/* && rimraf coverage/*","coverage":"jest --coverage","filesize":"../../scripts/minify","lint":"tslint -c \"../../tslint.json\" -p tsconfig.json -c ../../tslint.json src/*.ts","prebuild":"npm run clean","prepare":"npm run build","test":"npm run lint && jest","watch":"tsc -w -p . & rollup -c -w"},"dependencies":{"apollo-link":"^1.2.10","tslib":"^1.9.3"},"peerDependencies":{"subscriptions-transport-ws":"^0.9.0"},"devDependencies":{"@types/graphql":"14.0.7","@types/jest":"24.0.11","graphql":"14.1.1","graphql-tag":"2.10.1","jest":"24.5.0","rimraf":"2.6.3","rollup":"1.6.0","subscriptions-transport-ws":"0.9.15","ts-jest":"22.4.6","tslint":"5.13.1","typescript":"3.0.3"},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js","json"],"testURL":"http://localhost"},"gitHead":"127ab65ba89185a82c492299c7853f02fdd7e570","_id":"apollo-link-ws@1.0.16","_nodeVersion":"8.12.0","_npmVersion":"lerna/3.13.1/node@v8.12.0+x64 (darwin)","dist":{"integrity":"sha512-uiR44CypjGMGza91t1q+XhWKOw6U7F9lPu47cQDDPrfyNG73pYX6MbE/9tZFAIl3eWnAO17TTpxzNTWfpIhODA==","shasum":"f4075c0913b287ad79c73b7339395e43de19c406","tarball":"http://registry-npm.ywwl.com/apollo-link-ws/download/apollo-link-ws-1.0.16.tgz","fileCount":18,"unpackedSize":17596,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJciaqkCRA9TVsSAnZWagAAbQkP/R2n0GvUw77N9/Yx5t5a\nRsQyfC27wiB2cNNpWo0WlViYS5aAPsnXy61LKXo9CYcJLVF9KBOSnl1OTO39\nJjAfDHoqrgTJ6sjVlmW78VfoBFF6uAZcy1VpsgpO7V6+AinNtcAs3MZUgAuc\n0GIsuxvzo10t3L/7n1E4sjeBL3YkXSU1L5AeTBePgexKCOWFFKDAV8YjPJw5\nJ7HEVcNqZn2gmQr0ambrsxczmGHzGLKUEMoz3jqUc0lrYpIL3LFT8kVHY4Cy\nxfMvmJ3XlhNWOQi3kGEzbXd+EwJ2P4fCLraLhwSvi8TbdMjWoERgV7dgP989\naJnkrKLH+i6nynQn0u5yiQEJp2FP2HxE0E5TPJsoXR4dVMWn4FiVaGIeTljV\n1CXtQYhnczUU5NOz6Z2WNAbp2dcjSkJYGUSAIlSWJ9D7+bxbOXJcUWG4zqYo\nuAm+y/sdzSotnKCdrX9rN/zzIyLIVFpi5AmtxvPIZq5iLtVRt3TT+9xTP8MG\nV7Bm7PemVXzcvgkxNfN1gwVVWpvv8zbaiiGKuWsc9P9k7j9O/3yju+8n2Gcx\nyDQB2g1P6j3wuA9Pq15fU/Zj4dB0N/l1YB0tYG5IHSwgruqZvwy3Rj3yrdt8\n3SmqEd+KbuHF3moJWdPi9TM5bGTQ5/X67sV/GNilc+LhitHZg/50ddar1xGc\ncDtK\r\n=pRMD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCugfNtDiINkNxhPiN+WNih99j0tjX1/X4F4a5u+Dk/PgIgBdFzNF6jBlfC7Qs5Qo8UZ8VS7cUaKwYsr1Rw5C0hukI="}],"size":5244,"noattachment":false,"key":"/apollo-link-ws/-/apollo-link-ws-1.0.16.tgz"},"maintainers":[{"email":"npm@apollographql.com","name":"apollo-bot"},{"email":"evanshauser@gmail.com","name":"evanshauser"},{"email":"james@meteor.com","name":"jbaxleyiii"}],"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-link-ws_1.0.16_1552525987448_0.5120557714445682"},"_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":1552525987616,"_cnpm_publish_time":1552525987616,"dist-tags":{"beta":"2.0.0-beta.0","latest":"1.0.20"}}