Open arlyxiao opened 1 year ago
Install AWS Cli on windows https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi
You should already have AWS account key and secret
aws configure
https://sst.dev/examples/how-to-create-a-websocket-api-with-serverless.html
npx sst deploy
npx sst remove aws dynamodb delete-table --table-name xx-xxx-xxx
npx sst console
https://www.piesocket.com/websocket-tester
$ wscat -c wss://abcdef123.execute-api.us-west-2.amazonaws.com/production -H "authorization:Bearer jwt-from-auth"
Prepare
Install AWS Cli on windows https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
Configure AWS credential
You should already have AWS account key and secret
Follow the example step by step
https://sst.dev/examples/how-to-create-a-websocket-api-with-serverless.html
Deploy
Remove
Check dynamoDB online
Test websocket online
https://www.piesocket.com/websocket-tester
Remember to set authorization