Apollo WebSocket link for AWS Lambda subscriptions
Apollo WebSocket link supporting AWS Lambda subscriptions (utilizing AWS API Gateway v2) for aws-lambda-graphql
package.
Installation
yarn add aws-lambda-ws-link graphql# ornpm install aws-lambda-ws-link graphql
Usage
Implement your simple client
;;; const wsClient = uri: 'ws://localhost:8000';const link = client;const client = cache: link; // ...
Examples
- Chat App - React app
- Chat Server
- contains AWS Lambda that handles HTTP, WebSocket and DynamoDB streams
- also includes serverless.yaml file for easy deployment