{"bugs":{"url":"https://github.com/apollographql/apollo-link/issues"},"dist":{"shasum":"5a766719a939b69508c450a184680cc35fedd433","tarball":"https://registry.npmjs.org/apollo-link-ws/-/apollo-link-ws-2.0.0-beta.0.tgz","fileCount":18,"integrity":"sha512-X+cdzmX+IaAURouIoyOEJG3Bzu4EzR2fu1i1NZgQPeRqoKe08lwZWqiLexoHhonpPOHP6DSwIoyBjzlAEQ4oAg==","signatures":[{"sig":"MEYCIQDic4v5qK6cFhG7Lhi6mdB3T19NYHskOaQdJPTaixWpwAIhANdjyotQjCevtUx2vbM6oEkJaJuctHDbmDkdYpxNaKuG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17650,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzwWCCRA9TVsSAnZWagAA6SgP/3V8lg0CTXDkyNX6ejkI\n/GFY9qHr2/DIeUQEKn9hGWhx/BAnWV/UdnfqooS1MuTfogNALA7DIA2jQl/F\nqtjenRHgPPYW5ZuYSBmL7dV7x3nsP1e5ss/qUK2SW1/vJJFIKmt8eCX7gFn0\nZAFWLANvMmcWBIPZl4YIh1JCaFF+p1d1E5tNffqHIl7dRdTy84c17pzKv/J3\nX7rxa8HEYyh9EhP6PcZeEar93YO44jSE3Hbb+78n60B5IVqjHT+LQys+C/6q\n6mKQz1lqM5fzFREoGEWcju4Pxmy2Yvd2a8bUc0qA6Q+D3VTbUBDYgRNBRgRs\neYULBtZeHRmyO4lSWNBbATe1L4UVZgViivF26rQFRpfS3Vc+q+XPouPJHUnq\niQPmbjFf9IX1VdMVh9vKKwl36zsdm1fXEjAGPS+fI0kkk1ULyqPKRR5UCaX6\nLqFlJ7caa8eO0aUylJ3dLfZpRFYonzaEdu0Wj0zD2QoK2KzuFzYCeRbkJK5P\nk99v2HfTfMhfqeoaCKpWPisDJefJxKfJOxzSSIk40XKBemZSkLvdDBL+0MmG\nCx2VLEc65kPJjcrtosDOFkzhiMxCnL55UWYdWDa29vITuRuC0QN1RbSQ6CxX\ncY/bmqd/Si9KcFVe43gwAn4tumXnG8n+XQxCQLx3i511hTBZrblavNtajhnv\nVIvo\r\n=UNYz\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testURL":"http://localhost","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js","json"]},"main":"./lib/index.js","name":"apollo-link-ws","author":{"name":"Evans Hauser","email":"evanshauser@gmail.com"},"module":"./lib/bundle.esm.js","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","gitHead":"150213d6b1ee2ecf5a6c8f7f46acf53b639edb0d","license":"MIT","scripts":{"lint":"tslint -c \"../../tslint.json\" -p tsconfig.json -c ../../tslint.json src/*.ts","test":"npm run lint && jest","build":"tsc && rollup -c","clean":"rimraf lib/* && rimraf coverage/*","watch":"tsc -w -p . & rollup -c -w","prepare":"npm run build","coverage":"jest --coverage","filesize":"../../scripts/minify","prebuild":"npm run clean"},"typings":"./lib/index.d.ts","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"homepage":"https://github.com/apollographql/apollo-link#readme","repository":{"url":"git+https://github.com/apollographql/apollo-link.git","type":"git"},"_npmVersion":"lerna/3.18.4/node@v10.15.3+x64 (darwin)","description":"WebSocket transport layer for GraphQL","directories":{},"maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"evanshauser","email":"evanshauser@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"}],"sideEffects":false,"_nodeVersion":"10.15.3","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"}],"dependencies":{"tslib":"^1.9.3","@apollo/client":"^3.0.0-beta.10"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"24.9.0","rimraf":"2.7.1","rollup":"1.27.0","tslint":"5.20.1","graphql":"14.5.8","ts-jest":"22.4.6","typescript":"3.0.3","@types/jest":"24.0.23","graphql-tag":"2.10.1","@types/graphql":"14.2.3","subscriptions-transport-ws":"0.9.16"},"peerDependencies":{"subscriptions-transport-ws":"^0.9.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-link-ws_2.0.0-beta.0_1573848450395_0.4158987769548588","host":"s3://npm-registry-packages"},"_id":"apollo-link-ws@2.0.0-beta.0","version":"2.0.0-beta.0"}