ExtensionsAPI reference
connect.proxy
Control the profile's proxy arbiter (Connect+-only).
Control the profile's proxy arbiter. Connect+-only.
- Capability:
proxy - Namespace:
connect.proxy
Walkthrough
Route the profile through a proxy.
- Declare
proxy:{ "capabilities": ["proxy"] } - Enable it with a valid URL:
await connect.proxy.set({ enabled: true, url: 'http://127.0.0.1:8080' }); - Disable it (which clears the URL):
await connect.proxy.set({ enabled: false });
Methods
proxy.get()
Read the current proxy setting.
How to use it
- Call it to read
{ enabled, url }.
Signature — connect.proxy.get() · Capability: proxy · Returns —
Promise<{ enabled, url }>.
proxy.set(options)
Set the proxy.
How to use it
- To enable, pass
{ enabled: true, url }— a validurlis required. - To disable, pass
{ enabled: false }— the URL is cleared.
Signature — connect.proxy.set({ enabled, url? })
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
enabled | boolean | yes | Turn the proxy on/off. |
url | string | when enabling | Proxy URL. Enabling requires a valid url; disabling clears it. |
Returns — Promise<void>.
await connect.proxy.set({ enabled: true, url: 'http://127.0.0.1:8080' });
await connect.proxy.set({ enabled: false }); // clears the urlNotes
- The proxy applies to the whole profile. Read the current state (including whether it's on)
from
connect.profiletoo (proxyEnabled).