{"name":"apollo-link-ws","version":"1.0.15","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.9","tslib":"^1.9.3"},"peerDependencies":{"subscriptions-transport-ws":"^0.9.0"},"devDependencies":{"@types/graphql":"14.0.7","@types/jest":"22.2.3","graphql":"14.1.1","graphql-tag":"2.10.1","jest":"22.4.4","rimraf":"2.6.3","rollup":"1.4.1","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":"2c960e057de9d664855bb18df4a4bd25c88bb6ef","_id":"apollo-link-ws@1.0.15","_nodeVersion":"8.15.1","_npmVersion":"lerna/3.13.1/node@v8.15.1+x64 (darwin)","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"dist":{"integrity":"sha512-zXYfvKBpgf7QXIIEO11qgKLYyodo1mDkJr2IojcvOqbGGtqi7+DtOxX21/mrM2pzcwczYGCSDrtFhas4A7RnNA==","shasum":"1a0132ee3c700640d64c5b00ad8cff5cb974ff62","tarball":"http://registry-npm.ywwl.com/apollo-link-ws/download/apollo-link-ws-1.0.15.tgz","fileCount":114,"unpackedSize":44719,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcfwGECRA9TVsSAnZWagAAQFoP/jDx892K7FGdDj83XyIN\nPupSbrpn42vQx6q1sU2ijK6sxqs3OsRUViWJr3JcRdC+tvqM0e/j53qrU5P3\nE3afYeiNuUJIKvILo00z9udouyBYzgftBWqEzBSvFlPs6B1nFBHTFiJbRNKR\nUEsa7LgBX4Vvz1gtQ1cioX/IIYKZ3aQ/KYg7I0mP4a0DkE3SXBHGYuY1KsgI\nqfjHED2EoZQBQmUfYQb5ypZlOEDqvzIxbtBwVpdhk0b4CH1SQ2ZuNs+0udrv\n8DxPnY6oQfMW5iGw7tGGvq9UOMjC8ZIaZfd5XHs+/gsVkuinjK0VGgniiDVB\nopw3jcUK4koz+DU/+4wxlkACUmf/y+hbRkh5HnWp49wnq87kIBYW8SYNls5i\nLNhQT5FVkK6LoNN/xOBpZPjfp6++a19f3Y3EP4Yuaig4t5WKB9qmDxRg1TXs\nOJ6+sS2eBMBnchKeJvyjGppU94yGMMKy5Bw/PygfmZixZT/BaQLcpykl4JzF\nF7Ei0CiOwK4WWnzGKRCPBodfBoXTIz3TnSYL7dXaQafC4ERtv1syCzivZG/z\nwMaH2Bb0xuUTTpecPlJZ87U2U5g+Odlxx0PMz2ldA2tlEghxJDyYQwSvNcDs\n07ZIhEUGoxfvFHK/qD7L/1uwhuNDT4ASoqomfoq+7YlRTNLNiRE+bDEoz+Jd\n701K\r\n=3rYu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsOSedLKbexiLEXlGb3p4l1ZsvE2Mak/qRSO4rifkPcwIgQjlFCix3Gh5ALKl1C9QpIqvfveHgpmGUFfGoEi5qXi0="}],"size":8028,"noattachment":false,"key":"/apollo-link-ws/-/apollo-link-ws-1.0.15.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.15_1551827331320_0.9353800299521515"},"_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":1551827331553,"_cnpm_publish_time":1551827331553,"dist-tags":{"beta":"2.0.0-beta.0","latest":"1.0.20"}}