- hintNetworkAvailability#
Inform wallet-core about the host system’s network connectivity.
Request:
The request
argsmust be a HintNetworkAvailabilityRequest object.Response:
On success, the result is an empty object.
Side effects:
Records the host’s network state; on change, background tasks are woken up and may start network activity.
Details:
When the reported availability changes, wallet-core restarts all running background tasks: tasks that are blocked waiting for the network resume when connectivity is back, and tasks notice the outage and wait when it goes away. Reporting the already known state has no effect. Network availability defaults to available, so clients that never send this hint do not block background network activity.
interface HintNetworkAvailabilityRequest {
// Whether the host system currently has network connectivity.
isNetworkAvailable: boolean;
}