Skip to content

jgpersy/aws-websockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Websockets stuff

This is a websockets project written in Terraform and Python. Your websocket client can connect, subscribe to a topic and receive messages sent to that topic.

Installation

  1. Clone the repository
  2. Navigate to the /terraform directory
  3. Run terraform init
  4. Run terraform apply

Usage

To connect use the command wscat -c wss://<YOUR_API_GW_INVOKE_URL>

e.g. wscat -c wss://abc123.execute-api.eu-west-1.amazonaws.com/dev

Once connected, press enter and the default response will give instructions on usage.

TODO

  • Authorization: query string
  • Authorization: x-api-key header
  • Storage: change dynamoDB to cache e.g. elastic cache
  • PING/PONG request/response to prevent client connection timeout
  • Redis connection pooling

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published