2025-03-16 21:02:16 +03:00
|
|
|
---
|
|
|
|
|
sidebar_position: 4
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
|
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
|
|
|
|
|
|
# Is connector
|
|
|
|
|
Checks that the value is an object of an RCON AddIn
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`Function IsConnector(Val Value) Export`
|
|
|
|
|
|
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|
|
|
|-|-|-|-|-|
|
|
|
|
|
| Value | - | Arbitrary | ✔ | Value to check |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns: Boolean - Is connector
|
|
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:::caution
|
|
|
|
|
**NOCLI:** this method is not available in CLI version
|
|
|
|
|
:::
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
2025-03-17 10:43:28 +03:00
|
|
|
URL = "127.0.0.1:25565";
|
|
|
|
|
Password = "Jg9F...";
|
|
|
|
|
WriteTimeout = 20;
|
|
|
|
|
ReadTimeout = 20;
|
|
|
|
|
|
|
|
|
|
ConnectionParams = OPI_RCON.FormConnectionParameters(URL, Password, ReadTimeout, WriteTimeout);
|
|
|
|
|
Connection = OPI_RCON.CreateConnection(ConnectionParams);
|
|
|
|
|
Result = OPI_RCON.IsConnector(Connection);
|
2025-03-16 21:02:16 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-03-18 10:00:47 +03:00
|
|
|
```json title="Result"
|
|
|
|
|
true
|
|
|
|
|
```
|