Skip to content

setProxy

Sahri Riza Umami edited this page Jun 23, 2018 · 3 revisions

Sets the proxy server for network requests.
Can be called before authorization.

setProxy(proxy, server, port, username, password, callback, data)
Field Type Description
proxy string Proxy server to use: Empty or Socks5. Specify null to remove the proxy server.
server string Proxy server IP address.
port int32 Server port.
username string Username for logging in.
password string Password for logging in.

Example

  • Sets a SOCKS5 proxy server for network requests.

    setProxy('Socks5', 148.251.238.35, 1080)

    Response:

    {
      ["@type"] = "ok"
    }

Frequently Asked Questions
The Functions

Clone this wiki locally