Find file History
Latest commit de651c1 Jan 10, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src fixes issue #5 Jan 11, 2019
README.md Added instruction to install `wscat` Dec 26, 2018
package-lock.json Add plugin to example Dec 21, 2018
package.json Add plugin to example Dec 21, 2018
serverless.yml Word change Dec 28, 2018

README.md

General

Architecture

  • API Gateway websockets
  • Lambda
  • DynamoDB
  • DynamoDB Streams (just to demo some durability)

Chat Protocol

Connect

npm i -g wscat - to install WebSocket cat

wscat -c wss://{ApiId}.execute-api.us-east-1.amazonaws.com/{ApiStage}

Messages

{"action": "sendMessage", "name": "johndoe", "channelId": "General", "content": "hello world!"}

Channel Subscriptions

{"action": "subscribeChannel", "channelId": "Secret"} {"action": "unsubscribeChannel", "channelId": "Secret"}

Get channel history

(coming soon)