Skip to content

Instantly share code, notes, and snippets.

@techygrrrl
Created June 10, 2022 05:57
Show Gist options
  • Save techygrrrl/88329b4a7069a8d51e9b15ad20a2f5ba to your computer and use it in GitHub Desktop.
Save techygrrrl/88329b4a7069a8d51e9b15ad20a2f5ba to your computer and use it in GitHub Desktop.
Heartbeat script to keep your app alive for the GameSense SDK
GAMESENSE_HEARTBEAT_ENDPOINT='http://127.0.0.1:49711/game_heartbeat'
GAME_NAME='TECHYGRRRL'
while
curl --location --request POST $GAMESENSE_HEARTBEAT_ENDPOINT \
--header 'Content-Type: application/json' \
--data-raw '{
"game": "$GAME_NAME"
}'
sleep 8
do true; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment