handle Host Status

open fun handleHostStatus(host: SavedHost, onStatusChange: (HostStatus) -> Unit)

Method used to handle the status of the host such online or offline

Parameters

host

The host to handle its status

onStatusChange

The callback to execute when the status of the host changed