Skip to content

Commit 40b6b6a

Browse files
committed
Add README.md
1 parent 4dfce28 commit 40b6b6a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# simple-websockets-app-py
2+
3+
## Deployment
4+
5+
- Install python packages
6+
- `aws s3 mb s3://simple-websockets-app-py`
7+
- `sam package --template-file template.yaml --output-template-file packaged.yaml --s3-bucket s3://simple-websockets-app-py`
8+
- `aws cloudformation deploy --template-file packaged.yaml --stack-name simple-websockets-app-py --capabilities CAPABILITY_IAM`
9+
- Ensure that each lambda is tied to the corresponding route for API Gateway
10+
- Deploy the APIs for `prod`
11+
12+
## Connecting via websocket
13+
14+
- Install node modules
15+
- `wscat -c wss://{API-ID}.execute-api.{REGION}.amazonaws.com/prod`
16+
- Type `{"action":"sendmessage", "data":"hello world!"}`

0 commit comments

Comments
 (0)