0.13.0 • Published 4 years ago
aws-lambda-ws-link v0.13.0
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
# or
npm install aws-lambda-ws-link graphql
Usage
Implement your simple client
import { Client, WebSocketLink } from 'aws-lambda-ws-link';
import { InMemoryCache } from 'apollo-cache-inmemory';
import { ApolloClient } from 'apollo-client';
const wsClient = new Client({
uri: 'ws://localhost:8000',
});
const link = new WebSocketLink(client);
const client = new ApolloClient({
cache: new InMemoryCache(),
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
0.13.1
4 years ago
0.13.0
4 years ago
0.12.3
4 years ago
0.12.2
4 years ago
0.12.1
4 years ago
0.12.0
4 years ago
0.11.0
4 years ago
0.10.0
5 years ago
0.9.1
5 years ago
0.9.0
5 years ago
0.8.1
5 years ago
0.8.0
5 years ago
0.7.2
5 years ago
0.7.1
5 years ago
0.7.0
5 years ago
0.6.0
5 years ago
0.5.0
5 years ago
0.4.0
5 years ago
0.3.1
5 years ago
0.3.0
5 years ago
0.2.1
5 years ago
0.2.0
5 years ago
0.1.0
5 years ago
0.1.0-alpha.0
5 years ago