defold (official)
defold/extension-network-info/networkinfo
Functions to get information about the network configuration of the device.
- GitHub: defold/extension-network-info — pinned to
8820f43- This repo publishes no releases or tags. Add a commit archive URL — for the pinned commit,
https://github.com/defold/extension-network-info/archive/8820f43f9e24aaeb57542a102aced11db04198d9.zip— togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as networkinfo from "networkinfo"
- This repo publishes no releases or tags. Add a commit archive URL — for the pinned commit,
Functions
networkinfo.get_proxy_info(url: string): table
Get information about proxies for a specific url.
Parameters
url:string— The url to get proxy configurations for
Returns
proxies:table— A list of proxies to try in order. Each proxy has three values type: direct (no proxy), http, socks host: proxy url port: proxy port number