aws-lambda-ws-link
Apollo WebSocket link supporting AWS Lambda subscriptions (utilizing AWS API Gateway v2) for aws-lambda-graphql package
Last updated 4 months ago by michalkvasnicak .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install aws-lambda-ws-link 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.0-alpha.0                                ...           experimental (a year ago)
  • 0.13.0                                ...           latest (4 months ago)

23 Versions

  • 0.13.0                                ...           4 months ago
  • 0.12.3                                ...           4 months ago
  • 0.12.2                                ...           4 months ago
  • 0.12.1                                ...           4 months ago
  • 0.12.0                                ...           4 months ago
  • 0.11.0                                ...           5 months ago
  • 0.10.0                                ...           5 months ago
  • 0.9.1                                ...           5 months ago
  • 0.9.0                                ...           5 months ago
  • 0.8.1                                ...           6 months ago
  • 0.8.0 [deprecated]           ...           6 months ago
  • 0.7.2                                ...           6 months ago
  • 0.7.1                                ...           7 months ago
  • 0.7.0                                ...           8 months ago
  • 0.6.0                                ...           10 months ago
  • 0.5.0                                ...           10 months ago
  • 0.4.0 [deprecated]           ...           10 months ago
  • 0.3.1                                ...           10 months ago
  • 0.3.0                                ...           10 months ago
  • 0.2.1                                ...           10 months ago
  • 0.2.0                                ...           10 months ago
  • 0.1.0                                ...           a year ago
  • 0.1.0-alpha.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 46
Dependencies (3)
Dev Dependencies (5)

Copyright 2014 - 2016 © taobao.org |