Created
June 10, 2022 05:57
-
-
Save techygrrrl/88329b4a7069a8d51e9b15ad20a2f5ba to your computer and use it in GitHub Desktop.
Heartbeat script to keep your app alive for the GameSense SDK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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