Skip to content

quantummaid/awswebsocketdemo

Repository files navigation

AWS Websockets Demo

Deploy server to AWS (create & update)

mvn clean package
export STACK_IDENTIFIER="awswebsocketdemo"
./deploy.sh

Interact with the server

Use pre-deployed instance:

. ./scripts/endpoints.sh

or configure custom deployment:

export HTTP_ENDPOINT="https://XXXXXXXXX.execute-api.us-east-1.amazonaws.com/"
export WEBSOCKET_ENDPOINT="wss://XXXXXXXX.execute-api.us-east-1.amazonaws.com/awswebsocketdemo"
export CLIENT_ID="testclient"

Connect CLI client

./democlient.sh $WEBSOCKET_ENDPOINT $CLIENT_ID 

Trigger fake event

./scripts/trigger_event.sh

Trigger fake event with an invalid client id

CLIENT_ID="x" ./scripts/trigger_event.sh

Disconnect all clients

./scripts/disconnect_clients.sh

About

AWS WebSocket Demo

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published