{"name":"apollo-link-ws","version":"1.0.19","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.13","tslib":"^1.9.3"},"peerDependencies":{"subscriptions-transport-ws":"^0.9.0"},"devDependencies":{"@types/graphql":"14.2.3","@types/jest":"24.0.18","graphql":"14.5.4","graphql-tag":"2.10.1","jest":"24.9.0","rimraf":"2.7.1","rollup":"1.20.3","subscriptions-transport-ws":"0.9.16","ts-jest":"22.4.6","tslint":"5.17.0","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":"74d412528dd474fc41ee0bf504e36e01d7e05e2b","_id":"apollo-link-ws@1.0.19","_nodeVersion":"10.15.3","_npmVersion":"lerna/3.16.4/node@v10.15.3+x64 (darwin)","dist":{"integrity":"sha512-mRXmeUkc55ixOdYRtfq5rq3o9sboKghKABKroDVhJnkdS56zthBEWMAD+phajujOUbqByxjok0te8ABqByBdeQ==","shasum":"dfa871d4df883a8777c9556c872fc892e103daa5","tarball":"http://registry-npm.ywwl.com/apollo-link-ws/download/apollo-link-ws-1.0.19.tgz","fileCount":18,"unpackedSize":17578,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdcom4CRA9TVsSAnZWagAAkkEP/3NVy7DOcvADsEDSI4Iq\neJtt3S33pS3O13LrXmCdF3YMwG6ZZuODBPQPy1t/XcjW1NbZ3+BMre6OcoT3\nvZqgpPwpToBVKL1x05FKjQZ3k16hq0rnXdVOkxWvjh8DT5Gpvq7DtvN4dcNn\nXR/tM7bsIZ+QnZs9v6Uacjj0LFkmD3EvMwQmKb17fmgVC19EhsmiepPYmEY1\nb6Oyxpi+++CQxfScQsW1tudLtTwzO3I3jDQGUC3E/Gs33sZIpE8Fiswlt7Iu\nqa0meP0w9D0uERjXDD9mhc4E1w76u1VIzDXAxb4Pfs0TJOrON/APYVsVQ8p9\njGpfMkP8Ni+NJrfrpQWfhCgfg9l58/5cBeFGOnszgn9CrplKebhVd+gYr77O\n+hTWAhMQUUyY4U5iD573izd/nxbqV7FQh0VweetTVNL0cpMZJO42RirB0OdR\nIhIyYqcGMF9JHTy3B5O7JJMubuYdSaZ9nzEcEnmrDR6i+rB1Y5mxExR6Klmv\nQUYKIkvHGcrGvJOINZZMaJL6x2RGzzb92TYJ0qxUMzLQ0dZAVUlgiA4m5I++\nmIV2Ha1CV4kiY99nRX7a6gjPhdWTOLfGKzPcz0+nsSQzQ9ddJzK0w0C029SP\n0MNrHC2BDqaJbC25gOyw08XayhN4St39es/uek/0zBUuBsD3lV1hTS5b3UMu\nO81M\r\n=m4Ec\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpATTGxYxV7GEbkPZnJTOTCOdOYBNjdpAM1/xRTckzKgIgfjCYNMH1nmnn56mITok2HiHLz/GkGfu09LfQojLgYpQ="}],"size":5205,"noattachment":false,"key":"/apollo-link-ws/-/apollo-link-ws-1.0.19.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.19_1567787448507_0.3685741192617953"},"_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":1567787448605,"_cnpm_publish_time":1567787448605,"dist-tags":{"beta":"2.0.0-beta.0","latest":"1.0.20"}}