send Heartbeat Request
fun sendHeartbeatRequest(serverURL: String?, context: Context, onFail: () -> Unit)
Content copied to clipboard
Send a heartbeat to the server.
Parameters
server URL
The server URL to send the request to.
context
The context of the calling Activity or Service to use for the request.
on Fail
Callback function to be notified about a heartbeat failure.