sendHeartbeatRequest

fun sendHeartbeatRequest(serverURL: String?, context: Context, onFail: () -> Unit)

Send a heartbeat to the server.

Parameters

serverURL

The server URL to send the request to.

context

The context of the calling Activity or Service to use for the request.

onFail

Callback function to be notified about a heartbeat failure.