This example demonstrates how to create a simple chat application using API Gateway's WebSocket-based API features.
It's based on the AWS Serverless Application Model simple-websockets-chat-app
.
Either cp terraform.template.tfvars terraform.tfvars
and modify that new file accordingly or provide variables via CLI:
terraform apply -var="aws_region=us-east-1"
The WebSocketURI
output contains the URL of the API endpoint to be used when following the instructions for testing.
{"message" : "sendmessage", "data" :" hello"}