{"name":"apollo-link-ws","version":"1.0.18","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.12","tslib":"^1.9.3"},"peerDependencies":{"subscriptions-transport-ws":"^0.9.0"},"devDependencies":{"@types/graphql":"14.2.0","@types/jest":"24.0.14","graphql":"14.3.1","graphql-tag":"2.10.1","jest":"24.8.0","rimraf":"2.6.3","rollup":"1.15.4","subscriptions-transport-ws":"0.9.15","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":"f902ab977d7d173951528a0bc2e38521b2afc096","_id":"apollo-link-ws@1.0.18","_nodeVersion":"8.16.0","_npmVersion":"lerna/3.13.1/node@v8.16.0+x64 (darwin)","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"dist":{"integrity":"sha512-nrWh9m7k1FQw1AK1GB1VTJS0o01cpsP2RYmTAh2j+P4lL2/72WgsblhbuF+yA1/jsgVrzg6xa+TNw3UwgGp3+g==","shasum":"281b9b0826d5fc7e2aa14d2784c5193d8b761112","tarball":"http://registry-npm.ywwl.com/apollo-link-ws/download/apollo-link-ws-1.0.18.tgz","fileCount":18,"unpackedSize":17597,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdBCNxCRA9TVsSAnZWagAA2ccP/jx6yTvpuZu4lW8xevn/\n0BZadwn8o7t2eAZ907tPqDJvNn1Pj/6w27GuFMOmUOBfxXCJi5o7N1FCXhff\nDJSv90GwpJBe9bQb3AQZAw/6Zp/NJv493yuGRGtBLLDTLaW8fhJ2QJzukueh\nZUsELa+Km7UMwaV20QeqJVjlpkT/WTqH9FBuvNZEcWDBLpgMzPo75Q2Waeup\n0+kpAdJv8J2f/jQtaW6nDIfZriS7QkGXt8f8tiQsDPqa9flC+uX8RLpAa/2T\nq25Qj43GS/nDBeCjYUDgPHad8iFukyCnJyxft4e8uFUYPy4+jwtitys6SoJa\n6PkAyplRRQ74JxtOmOp9h6b2MIUL/V1Ws6bOsZVuIpPT7ZhD8mlc4n5OE/fo\nLarnIGdcfcrhb96tEUXm/PjblXFY8k6XIfNy+cX0S/9wgJGQvp+SkXR82A6n\n5R2WQzUYDrlxUJSs9goTq7IKgpqFjCXi4nKwoj2/7h6BBow9klmqPHWx4z8R\nLdgJ/1j5SJFBoJIoqjMuwbUBLEMk4f+7zklPeUGFmPZYx02ZoG1PlXNtklFA\n9AvVGh6+xtsANlcZ1my97TE1tKaMAb46axeKmuaUo/ynEykc5nkVpL2CVefO\nycTQ+dosbg8hTaHq3b9s8PofolMd5GUh/XrmEko0+VrIWSpd9wD/M/NITrDm\noCh7\r\n=h+ps\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxnbGZtRfS5KaQWbqT9jEmdZj5B1t5j7YLF9QUw1o7UQIgR57S72Hg9an4/X/bzuWQEbQr7pM6s9n5XBQyO0hRe/Q="}],"size":5248,"noattachment":false,"key":"/apollo-link-ws/-/apollo-link-ws-1.0.18.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.18_1560552305188_0.7938191431288224"},"_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":1560552305333,"_cnpm_publish_time":1560552305333,"dist-tags":{"beta":"2.0.0-beta.0","latest":"1.0.20"}}