{"name":"apollo-link-ws","version":"1.0.13","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","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 ./tsconfig.cjs.json","bundle":"rollup -c","clean":"rimraf lib/* && rimraf coverage/*","coverage":"jest --coverage","filesize":"npm run build && npm run build:browser","lint":"tslint -c \"../../tslint.json\" -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","prepare":"npm run lint && npm run build","prepublishOnly":"npm run clean && npm run build","test":"jest","watch":"tsc -w -p . & rollup -c -w"},"dependencies":{"apollo-link":"^1.2.7"},"peerDependencies":{"subscriptions-transport-ws":"^0.9.0"},"devDependencies":{"@types/graphql":"14.0.5","@types/jest":"22.2.3","browserify":"16.2.3","graphql":"14.1.1","graphql-tag":"2.10.1","jest":"22.4.4","rimraf":"2.6.3","rollup":"0.68.2","subscriptions-transport-ws":"0.9.15","ts-jest":"22.4.6","tslint":"5.12.1","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"],"testURL":"http://localhost"},"_id":"apollo-link-ws@1.0.13","_npmVersion":"5.7.1","_nodeVersion":"8.9.2","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"dist":{"integrity":"sha512-RoR38aujeTdhNaOqjB3+zcfynvHRp5Kd8CzSU+XQLzw/Z3/PrzJmSYr+UrbZXbKjaJhBbzxW9aGYCxqQ2bGyxA==","shasum":"ecee5267ae99a7e9f6c5ebf9938657e90e0c10ce","tarball":"http://registry-npm.ywwl.com/apollo-link-ws/download/apollo-link-ws-1.0.13.tgz","fileCount":27,"unpackedSize":42089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcVIalCRA9TVsSAnZWagAARQsP/3YRtnEw0pbpbylDvUfM\nZRyYSi22xEXTWE9ht8UYv1HVt7wCdMjnZydCUmbh4Ir2Pr3pf2jMGHDsNvU3\nDqeHooluWUTk5mdjexDIGg4WQMoGJSrmV5ACl0F3sd6vWqgxLYtdOYnuHOCY\nIvNSZBX0qLlYCdHAiI9HJBeZHLLncLXeCsrS5llZbuDrYSB2XWuA6+4sjlrI\nw5Rv0XfcfWYGWr98x2MD/dyiHCOMl5FdL6OeF65S5VI33klCt/lJx0JhVQcN\nrAkTfN99fB4r9NVtm7yCp2bOziU6IQejoFQBghwNCwV9t2RJj5HneoOtDcv+\nU7XP6h0cqHf9EvWqeDA76pTtrjwHtfgDP2rH4vB5JIgHDVUL005J1FMe+O6G\nPeb0q3Lu7/4TowslFB8XX4IWKVHUgstGSHwqXQ/Talh+FgSGfR9Q8Rm+1RRD\nv8R/f5i9E7w63tYnxKW61k/GnfoLx//Uvxsk/Is+FHyaG7Ue8BJFUV1BE9rg\nGZzk4j7HsiBl9hnBhpW932dGX+NDBPz4jhWYEK74gAtE/RfVoK3RToyIe3+a\n29YGrzasKzZMs/xwIvUXnqJdJ0/ssUtxvFUpgMacGsFmIdNMLUcJaG1xF566\nmtIWTisdE32o71N9XjmV4b2WWEub/gDMiGzo6OUMoVkJ6AX9YMf8HuuSMHov\n5hJV\r\n=oVdh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDb6HkRCgRFlIh06ogQ778Nioc3meC4lW4GeTMRr6icbAIhAI4xuppBzcuJt/DWhx5kzgFwNRrYZ7TTj97SQ2i7cHCh"}],"size":9130,"noattachment":false,"key":"/apollo-link-ws/-/apollo-link-ws-1.0.13.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.13_1549043364178_0.23600356026127844"},"_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":1549043364339,"_cnpm_publish_time":1549043364339,"dist-tags":{"beta":"2.0.0-beta.0","latest":"1.0.20"}}