{"_id":"@8base/apollo-link-ws","_rev":"18-daf0efd8e80137fa61affb238c0956e9","time":{"1.0.19":"2019-09-19T15:45:16.232Z","created":"2019-09-19T15:48:40.423Z","1.0.20":"2019-09-19T15:48:40.662Z","modified":"2023-10-02T21:41:22.694Z"},"name":"@8base/apollo-link-ws","dist-tags":{"latest":"1.0.20"},"versions":{"1.0.20":{"name":"@8base/apollo-link-ws","version":"1.0.20","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.11","tslib":"^1.9.3"},"peerDependencies":{"@8base/subscriptions-transport-ws":"^0.9.0"},"devDependencies":{"@types/graphql":"14.2.3","@types/jest":"24.0.18","graphql":"14.5.6","graphql-tag":"2.10.1","jest":"24.9.0","rimraf":"2.7.1","rollup":"1.21.4","@8base/subscriptions-transport-ws":"0.9.16","ts-jest":"22.4.6","tslint":"5.20.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"},"_id":"@8base/apollo-link-ws@1.0.20","_nodeVersion":"11.15.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-oAr+JnpIyw0RH4gfGP4ESj1c3heK9LQhP18NtTLpm2FWOzUEsYtNN4RuMoNQRmBRB7574AzMzaRjl3K/tnU8yw==","shasum":"cf8f0106e25f0907801f83dd9de7e41a5990a659","tarball":"https://registry.npmjs.org/@8base/apollo-link-ws/-/apollo-link-ws-1.0.20.tgz","fileCount":17,"unpackedSize":16507,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1vmhCRA9TVsSAnZWagAAqugP/0wPmjkuZ18T6d9Q1G/B\nywrXtb1h7l0KUM6KoaPHkd1zwDtglOLBQ+aq/5lYWuVamSOOQCuhqXkpWgXE\nYCgAV4QutIQVbJCVMMMEWLQCywVqG2T+v4BlfGsRzzL5o/rOYTw8bAwjJ1z9\nxb1YS1PgRzlq57Wecs5JVsVTrCC7urE/6gqLG3Sy9qPhGyD0wFU3v/seB1/m\nACl7j6sgYTZ0ramLmqwm/JcmRW5PAHB/5ULlbam05bzabf5KZItEO8h1KDG7\nBO7GYHUmf/+1TI+qz+qchF18hiTTRtiRwGLaZGEWXg/D79fRfpUU6ncV5eDK\n1MjcKyM+pte0keuefAiBfNjO5r/I7a1pKFH4XKBOr1NFw5GsWwtHLvQgbavr\nOiEYEA5oVGmJoCIeDlU7SdSWsZ6OwtnzIEYDiPxXWea40Xt2kDoGIyQwMy+b\n05qBGk7i7BFG6/1cRb5W0rEmuEq2nKO9H4ZE15GpRshOATHD5dNHj9JdzO4w\nr+Evuz7c2VlMmBECNfiIUNFz2AB9eaz56dSoOZzcx12o/rRHL3l71Rs3FF95\nCQMdVnx5/xILnfZD81t9UqCSPw6XCQaJ+9XdcI9HOKvQKu2qwlir8+GbEvTe\nYjgMv4+M/gOAD5lFRKCovgoOJLWCUq5MPlDwZfBuE5JtbUGKiy/Y+fbEOZJd\nSFG1\r\n=GIpT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSuApj2z7Y73cg6VBoh/9KeoNJJchnhFR3kvKmHT7nPAIgQJe4bI5BBLj1L4VDU2FyK0ZOMHCRW1yFVAiASB1F5Wc="}]},"maintainers":[{"name":"vorobeez","email":"vorobeez@gmail.com"},{"name":"zouxuoz","email":"zouxuoz@gmail.com"},{"name":"aanisimov","email":"andrei.anisimov@8base.com"}],"_npmUser":{"name":"zouxuoz","email":"zouxuoz@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-link-ws_1.0.20_1568908120523_0.3948303199116736"},"_hasShrinkwrap":false}},"maintainers":[{"email":"oscar.corcho@8base.com","name":"dav1nx1"},{"email":"jorge.osorio@8base.com","name":"jorge.osorio"},{"email":"npmpublisher@8base.com","name":"8base-bot"}],"description":"WebSocket transport layer for GraphQL","homepage":"https://github.com/apollographql/apollo-link#readme","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-link.git"},"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"}],"author":{"name":"Evans Hauser","email":"evanshauser@gmail.com"},"bugs":{"url":"https://github.com/apollographql/apollo-link/issues"},"license":"MIT","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","readmeFilename":"README.md"}