ElectronNet
Unofficial
Issues HTTP/HTTPS requests using Chromium’s native networking library.
Import:
import type { ElectronNet } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface ElectronNetProperties
| Property | Type | Description | |
|---|---|---|---|
| online | boolean | A boolean property. Whether there is currently internet connection.A return value of false is a pretty strong indicator that the user won't be able to connect to remote sites. However, a return value of true is inconclusive; even if some link is up, it is uncertain whether a particular connection attempt to a particular remote site will be successful. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| isOnline() | boolean | Whether there is currently internet connection. A return value of false is a pretty strong indicator that the user won't be able to connect to remote sites. However, a return value of true is inconclusive; even if some link is up, it is uncertain whether a particular connection attempt to a particular remote site will be successful. | |
| request(options) | ElectronClientRequest | Creates a ClientRequest instance using the provided options which are directly forwarded to the ClientRequest constructor. The net.request method would be used to issue both secure and insecure HTTP requests according to the specified protocol scheme in the options object. |
Links to this page: