{"name":"apollo-link-ws","version":"1.0.10","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/bundle.umd.js","module":"./lib/index.js","jsnext:main":"./lib/index.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 .","bundle":"rollup -c","clean":"rimraf lib/* && rimraf coverage/*","coverage":"jest --coverage","filesize":"npm run build && npm run build:browser","lint":"tslint --type-check -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","prepublishOnly":"npm run clean && npm run build","test":"jest","watch":"tsc -w -p . & rollup -c -w"},"dependencies":{"apollo-link":"^1.2.4"},"peerDependencies":{"subscriptions-transport-ws":"^0.9.0"},"devDependencies":{"@types/graphql":"14.0.3","@types/jest":"22.2.3","browserify":"16.2.3","graphql":"14.0.2","graphql-tag":"2.10.0","jest":"22.4.4","rimraf":"2.6.1","rollup":"0.67.3","subscriptions-transport-ws":"0.9.15","ts-jest":"22.4.6","tslint":"5.11.0","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"],"mapCoverage":true,"testURL":"http://localhost"},"_id":"apollo-link-ws@1.0.10","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"dist":{"integrity":"sha512-1Yx4iIUsWS8wuAdVJ2LF+LdIYAsqHSto8eShwJ/d2SovocsMCwN9hyS+JkaOPD/KHAkavTWzN6l3XwSOdOwevQ==","shasum":"9fb5489a36f5fcb0d139b6ada0eea979ecad3967","tarball":"http://registry-npm.ywwl.com/apollo-link-ws/download/apollo-link-ws-1.0.10.tgz","fileCount":16,"unpackedSize":16627,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9Mm0CRA9TVsSAnZWagAA8QwP/0uScx1mVSf7gfCXeMiz\n5385YYAXwLTRivtOzsuzb/iebyDp76rEAfAMeTTQ3vmlmbv5bp6Ak82giMyi\nTejogWdNTxoY5veTYsqqepql3jUqvy9wUCV6+ERqcQbAcUFxsIA7z8xpO0aT\ncaidx6IxstrY9J7ojb4RpHCtc9E0DcL87AGxmdVOzlelwQPNQXS9JXHmWLOb\noLmFgxO6Z9N61n/ezNFfENUwPiEQ3tP4l+/KXAZuQJpkISk/ily0aZVobwtB\nRoFnmY0dsQ0h7M06cLvJUDIf4eNYdhtoJPCy3KepjcaSXzVa8xEsyWzLQQ07\nkpHUGyOrt9bFuvLLD1TUIn04OEzRQp9MZK+Gw5raIXLGLnCs6KqfG0m6pnC0\ndPSZUnwG4B1jw4MqbN74uuzb9AIBsCoJDNN3UDn8eL97i7DFOZKHQmXISEua\nCfak65QSWpR1X9TsJK979ziRFbJy7YxtbYcbybgmnjXFlA94X4sDn7bUVApL\nM3wlPOciZ4mM6yOC5b0uFpa3rEbz0HxFprc6hGo52qHmWeqKd12KXTHDiCCg\nwz8UbHYInKapvGKMfD80+E+XDFdefoxvrqjtmSBqsj+z1MI9NB3RzKD/8ka7\n6PSx+QZv5DsJ1XZCvfdINkWulVI4VtJetzhXTQPREnNh/PTR/ba3qhZBh5SN\nRKN4\r\n=9vwR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFfV/hZUrlGzUwQt9ang5rRLX1l6cYWg61otvOax0LKCAiEAhn7TQDVmJky+WBkTs6FcGSair2jrewLIPqOrhDijA/I="}],"size":4909,"noattachment":false,"key":"/apollo-link-ws/-/apollo-link-ws-1.0.10.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.10_1542769076399_0.533258261143305"},"_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":1542769076513,"_cnpm_publish_time":1542769076513,"dist-tags":{"beta":"2.0.0-beta.0","latest":"1.0.20"}}