Skip to Content
defold-typescript libraries
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
    1. 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 — to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Run bunx @defold-typescript/cli resolve to materialize its types.
    3. Import it under a namespace alias of your choice:
      import * as networkinfo from "networkinfo"

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

On this page