{"name":"apollo-link-ws","version":"1.0.14","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.8"},"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"},"gitHead":"6f5d0cfb73e61c6f83caed9e37d37c4451a64c7b","_id":"apollo-link-ws@1.0.14","_nodeVersion":"8.12.0","_npmVersion":"lerna/3.10.7/node@v8.12.0+x64 (darwin)","dist":{"integrity":"sha512-KwHVnhKKDUA5PmmzpiqkyahjBcwGdf2eFlTZg4DIwgH1R0KcBmn/A6rkZnmClBbUNgV6t+kR46dW2fyx64Jm3A==","shasum":"588f898b7f953930a27e283941614d89907adf13","tarball":"http://registry-npm.ywwl.com/apollo-link-ws/download/apollo-link-ws-1.0.14.tgz","fileCount":39,"unpackedSize":47301,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcVKKhCRA9TVsSAnZWagAAazMQAKMA9d8totLg6o76sMYj\nhGH07NHtu8dUXC8xCZux6l9AI0C81QzdA5AkaDHPEctg7ilnkFRqQYG1lZ2x\nih/C4bfD345tkVgNVOIMz6ro6kG+GcQTcFq4DL3ShcdyMcDAownYSdWTNadw\nr4CmUxtEAj8CoO+Kej05yfJcPvAV4nUyhy1HAqsle8Mv7eHcQZvkMZNzK8Ww\nhWU3BlKJSePM+bkbLg9DAi5OAzbcx26SQJkMQwj3vDA48FA/v+8wpTZ0ejKH\nXGDsDV8Ez7si63u3mb7blsa/PyCa9VnygYZe1u/NwViYXCOA9A5u+/9+IhEP\nMrEV5UGqL12fOn668CA9on9SP8Conw+J25MmZFsf4zp+0bBQiczplhlagJDj\nGOX7qX0PLSRmtavQpg00rR2PZprTKZv0NqGXwBrIM5G5l4nz4bfPmIKCVjL0\nfopMCdvTlEF4acw3b4qNjnQI1gA9e8UK4hiuaGKjX0Wq6sxDJm6XlFDfvrCB\nTp+JGS13OfibkGBW3s2fMDwxO2xs9tWRfpbi3dDUwvJJS7vHJKDbiFQqYOOy\nThfDIDpy2mKOSTESvOlR3xoM4uIphKOkhT+ehQ4XO4s9IuB8afwpm9C4texZ\nl1dYBYiagBb5M9Gw6+1qPgGn9zS4Hs0MvNYq7+402vlW0x+mFsmebmXZXyyn\nEGYz\r\n=vFRG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAM39CWrBVMa3qERNr+C3xCAliTLyqIn91YaESRramsNAiAh4AxCJHOKW+kKxFYJt0o61UI35Y6pPaiip7nIPJzqeQ=="}],"size":10088,"noattachment":false,"key":"/apollo-link-ws/-/apollo-link-ws-1.0.14.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.14_1549050528479_0.8552118059796969"},"_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":1549050528576,"_cnpm_publish_time":1549050528576,"dist-tags":{"beta":"2.0.0-beta.0","latest":"1.0.20"}}