Skip to main content
Version: 8.0.3

proxy

Methods

disable()

The disable() method disables the proxy on the device.

disable(): Promise<void>;

Example

await sos.management.proxy.disable();

getConnectedTo()

The getConnectedTo() methods returns the current connected proxy server uri on the device.

getConnectedTo(): Promise<string>;

Example

const uri = await sos.management.proxy.getConnectedTo();
console.log(uri); // 178.62.193.192

isEnabled()

The isEnabled() method returns whether the proxy is enabled on the device.

isEnabled(): Promise<boolean>;

Example

const enabled = await sos.management.proxy.isEnabled();

setManual()

The setManual() method sets the proxy on the device.

setManual(uri: string, port: number, username?: string, password?: string): Promise<void>;

Example

const enabled = await sos.management.proxy.setManual('178.62.193.192', 1080, 'username', 'password');