Skip to content

Heartbeat callback

The Heartbeat callback is triggered when a user is actively engaging with the SPA.

Callback API

Note

You can find the basic implementation of the callback server written in Node.js in our GitHub repository at databet-cloud/callback-server-example.

Heartbeat callback MUST be implemented on the integration side.

cURL example

Replace the {callback-api-server} with your callback API server URL and run the following command to test heartbeat callback:

1
2
3
4
5
curl -X 'POST' \
http://{callback-api-server}/heartbeat \
-H 'accept: */*' \
-H 'Foreign-Params: {   "some_token": "some_token_value",   "internal_player_id": "123" }' \
-d ''

Swagger