1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-18 09:51:28 +02:00
Files
OpenIntegrations/docs/en/md/WebSocket/Client-methods/Get-proxy-settings.mdx
T
Vitaly the Alpaca (bot) 456f2837fa Main build (Jenkins)
2026-05-02 23:28:47 +03:00

72 lines
2.1 KiB
Plaintext
Vendored

---
sidebar_position: 9
description: Get proxy settings and other functions to work with WebSocket in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, WebSocket]
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Admonition from '@theme/Admonition';
# Get proxy settings
Creates a structure of proxy server settings for the connection
<Tabs>
<TabItem value="params" label="Parameters" default>
`Function GetProxySettings(Val Address, Val Port, Val View = "socks5", Val Login = Undefined, Val Password = Undefined) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Address | --addr | String | &#x2714; | Proxy address |
| Port | --port | Number | &#x2714; | Proxy port |
| View | --type | String | &#x2716; | Proxy type: socks5, socks4, http |
| Login | --login | String, Undefined | &#x2716; | Authorization login, if required |
| Password | --pass | String, Undefined | &#x2716; | Authorization password, if required |
<div className="return-value-note">
<div className="return-value-note__title">Returns</div>
<div className="return-value-note__value">
Structure Of KeyAndValue - Proxy settings structure
</div>
</div>
</TabItem>
<TabItem value="extended" label={<span>Advanced call{' '}<a href="/docs/Start/Advanced-call" target="_blank" rel="noreferrer" title="About advanced call" onClick={(e) => e.stopPropagation()}>?</a></span>}>
*This method has no additional advanced call parameters.*
</TabItem>
</Tabs>
```bsl title="1C:Enterprise/OneScript code example"
ProxyType = "http";
ProxyAddress = "127.0.0.1";
ProxyPort = "8071";
ProxyLogin = "proxyuser";
ProxyPassword = "12we...";
Result = OPI_WebSocket.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
```
```json title="Result"
{
"server": "host.docker.internal",
"port": 8071,
"proxy_type": "http",
"login": "proxyuser",
"password": "***"
}
```