1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-20 10:00:46 +02:00

Фикс формирования примеров кода документации

This commit is contained in:
Anton Titovets
2026-05-02 23:17:47 +03:00
parent e1fa809bc6
commit 7db7bd2078
90 changed files with 633 additions and 66 deletions
+43
View File
@@ -0,0 +1,43 @@
# ОПИ вышел в 2.0.0: WebSocket и ещё кое-что
**02.05.2026**
Вышла вторая мажорная версия Открытого пакета интеграций. Номер сменился не «для галочки»: в составе есть крупная новая подсистема, отдельные способы поставки под старые платформы, доработка HTTP и MCP в консоли. Ниже по смыслу, без простыни из строк релиз-нотов.
Если про ОПИ вы читаете впервые: это открытый набор методов для интеграций — расширение для 1С, пакет под OneScript, CLI под Windows и Linux. Код на GitHub, описания методов и примеры — на [openintegrations.dev](https://openintegrations.dev).
## Зачем эта версия отдельным текстом
Большую часть жизни пакета по-прежнему кормят обычные HTTP-сервисы: запрос, ответ, иногда файл или редирект. Но в реальных проектах регулярно всплывают три других запроса. Первый — долгое двустороннее соединение без опроса «каждые пять секунд». Второй — возможность перед вызовом метода без цирка подкрутить таймаут, прокси или формат ответа, не раздувая сигнатуру функций. Третий — возможность принести код на базу там, где удобен не CFE, а именно файл конфигурации CF под конкретную линию платформы.
В 2.0.0 есть ответ на все три пункта, плюс в CLI добавлен MCP — для тех, кто хочет вызывать возможности консоли не только из командной строки.
## WebSocket
WebSocket нужен там, где «один запрос — один ответ» начинает мешать: уведомления, чаты, стрим данных, свой сервер для входящих соединений. После установки соединения стороны обмениваются сообщениями в обе стороны без каждого раза заново разворачивать HTTP-сессию.
В ОПИ это оформлено модулем `OPI_WebSocket`. С клиента: подключиться (при желании через TLS или прокси), слать текст и двоичные данные, принимать ответы, пинг-понг, закрыть сессию нормальным кодом. С сервера: слушать порт, разбирать входящие сессии по id, отдавать данные в конкретное соединение, закрывать их и смотреть список активных. Для отладки можно включить лог — на память или в файл, как уже делают другие части пакета.
Реализация на внешней компоненте, в том же духе, что и остальной «нетривиальный» транспорт в ОПИ. Подробности по параметрам — в документации раздела WebSocket.
## Расширенный вызов
Раньше, если нужен был не «голый JSON из тела», а ещё код ответа с заголовками, или другой таймаут на один конкретный вызов, приходилось либо городить свой HTTP поверх общих утилит, либо мириться с тем, что параметры методов заточены только под «суть» запроса: токен, chat id, текст.
Теперь для части методов можно вызывать их **через расширенный вызов**: передаются обычные аргументы, отдельно — структура настроек HTTP-клиента (таймаут, расширенный ответ, прокси и т.п. — какие ключи поддерживаются, зависит от метода). В 1С/OneScript это функции из `OPI_РасширенныйВызов`; в CLI — опция `--config` с JSON. В документации для методов добавлены таблицы с этими ключами — не нужно гадать по исходникам.
## Поставка в CF под 8.3.10
У ОПИ и раньше было несколько способов установки: CFE, EDT-проект, OneScript-пакеты, сборки CLI. Новое — отдельный вариант **файла конфигурации .cf**, ориентированный на платформу **8.3.10**. Если у вас как раз такой контур или политики про CF, а не про расширение отдельным файлом, появился ещё один легальный путь.
Отдельно: в релизе подняты требования к режиму совместимости расширения (и основной конфигурации там, где это важно). Перед обновлением с 1.34 имеет смысл глянуть релиз-ноты и свои настройки совместимости, чтобы потом не ловить сюрприз при открытии базы.
## MCP в CLI
Консоль ОПИ давно используют в скриптах и CI. В сборку добавили **встроенный MCP-сервер через stdio** — стандартный способ подключить набор методов к средам, где инструменты объявляют себя по протоколу MCP и вызываются не руками, а клиентом. Если вы MCP уже не используете, строка для запаса на будущее: когда понадобится, не придётся писать свою заглушку.
Как запускать и что передаётся — см. [документацию MCP в CLI](https://openintegrations.dev/docs/Start/CLI-version/mcp-server).
---
Остальной список правок из 2.0.0 лежит в репозитории и анонсе релиза: там и мелкие исправления HTTP/OS, RSS, gRPC, и снятый с поддержки модуль Twitter, и прочее. Если по WebSocket или расширенному вызову появятся вопросы — их проще всего решить через issues на GitHub или обсуждение рядом с статьёй на Инфостарт.
@@ -31,7 +31,7 @@
КаталогЗначенийТестов = ДанныеПроекта.ПолучитьЗначениеНастройкиЛокализации("testValuesSrc", Язык);
ИмяОбласти = ДанныеПроекта.ПолучитьЗначениеНастройкиЛокализации("testsRegionName", Язык);
МодулиТестов = НайтиФайлы("./src/ru/OInt/tests/Modules/", "OPIt_*.os");
МодулиТестов = НайтиФайлы(СтрШаблон("./src/%1/OInt/tests/Modules/", Язык), "OPIt_*.os");
Для Каждого МодульТестов Из МодулиТестов Цикл
+1
View File
@@ -0,0 +1 @@
{"Token":"6129457865:AAFyzNYOAFbu..."}
+1
View File
@@ -0,0 +1 @@
{"ProxyAddress":"127.0.0.1","ProxyPort":8071,"ProxyType":"http","ProxtUser":"proxyuser","ProxyPassword":"12we..."}
+1
View File
@@ -0,0 +1 @@
{"ProxyAddress":"127.0.0.1","ProxyPort":8071,"ProxyType":"http","ProxtUser":"proxyuser","ProxyPassword":"12we..."}
+1
View File
@@ -0,0 +1 @@
{"ProxyAddress":"127.0.0.1","ProxyPort":8071,"ProxyType":"http","ProxtUser":"proxyuser","ProxyPassword":"12we..."}
+1
View File
@@ -0,0 +1 @@
{"ProxyAddress":"127.0.0.1","ProxyPort":8071,"ProxyType":"http","ProxtUser":"proxyuser","ProxyPassword":"12we..."}
+1
View File
@@ -0,0 +1 @@
{"ProxyType":"http","ProxyAddress":"127.0.0.1","ProxyPort":8071,"ProxyLogin":"proxyuser","ProxyPassword":"12we..."}
+1
View File
@@ -0,0 +1 @@
{"ProxyAddress":"127.0.0.1","ProxyPort":8071,"ProxyType":"http","ProxtUser":"proxyuser","ProxyPassword":"12we..."}
+1
View File
@@ -0,0 +1 @@
{"ProxyAddress":"127.0.0.1","ProxyPort":8071,"ProxyType":"http","ProxtUser":"proxyuser","ProxyPassword":"12we..."}
+1
View File
@@ -0,0 +1 @@
{"ProxyAddress":"127.0.0.1","ProxyPort":8071,"ProxyType":"http","ProxtUser":"proxyuser","ProxyPassword":"12we..."}
+1
View File
@@ -0,0 +1 @@
{"ProxyAddress":"127.0.0.1","ProxyPort":8071,"ProxyType":"http","ProxtUser":"proxyuser","ProxyPassword":"12we..."}
+1
View File
@@ -0,0 +1 @@
{"ProxyAddress":"127.0.0.1","ProxyPort":8071,"ProxyType":"http","ProxtUser":"proxyuser","ProxyPassword":"12we..."}
+13
View File
@@ -0,0 +1,13 @@
Token = "6129457865:AAFyzNYOAFbu...";
Parameters = New Array;
Parameters.Add(Token);
Settings = New Structure("adv_response", True);
Result = OPI_AdvancedCall.CallWithSettings("OPI_Telegram"
, "GetBotInformation"
, Parameters
, Settings);
OPI_TestDataRetrieval.Process(Result, "Core", "CallWithSettings");
@@ -0,0 +1,3 @@
Result = OPI_AdvancedCall.GetAvailableSettings("OPI_Telegram", "GetBotInformation");
OPI_TestDataRetrieval.Process(Result, "Core", "GetAvailableSettings");
+2 -2
View File
@@ -1,7 +1,7 @@
Text = "Text of post";
Title = "Post title";
Image1 = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Image2 = "https://hut.openintegrations.dev/test_data/picture2.jpg"; // URL, Path or Binary Data
Image1 = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
Image2 = "https://hut.openintegrations.dev/test_data/picture2.jpg"; // URL, Path or Binary data
Files = New Map;
Files.Insert("1.png", Image1);
+1 -1
View File
@@ -1,6 +1,6 @@
URL = "https://b24-ar17wx.bitrix24.by/rest/1/av5...";
ChatID = "3390";
File = "https://hut.openintegrations.dev/test_data/document.docx"; // Binary Data, URL or path to file
File = "https://hut.openintegrations.dev/test_data/document.docx"; // Binary data, URL or path to file
Description = "Very important file";
Directory = OPI_Bitrix24.GetChatFilesFolder(URL, ChatID);
+1 -1
View File
@@ -1,6 +1,6 @@
Text = "New post text";
Title = "New post title";
Image1 = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Image1 = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
PostID = "3326";
Files = New Map;
+2 -2
View File
@@ -1,8 +1,8 @@
Filename2 = "Picture2.jpg";
Name = "Picture1.jpg";
Image2 = "https://hut.openintegrations.dev/test_data/picture.jpg"; // Local path, URL or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture2.jpg"; // Local path, URL or Binary Data
Image2 = "https://hut.openintegrations.dev/test_data/picture.jpg"; // Local path, URL or Binary data
Image = "https://hut.openintegrations.dev/test_data/picture2.jpg"; // Local path, URL or Binary data
DestinationID = "46678";
+2 -2
View File
@@ -1,8 +1,8 @@
Filename2 = "Picture2.jpg";
Name = "Picture1.jpg";
Image2 = "https://hut.openintegrations.dev/test_data/picture.jpg"; // Local path, URL or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture2.jpg"; // Local path, URL or Binary Data
Image2 = "https://hut.openintegrations.dev/test_data/picture.jpg"; // Local path, URL or Binary data
Image = "https://hut.openintegrations.dev/test_data/picture2.jpg"; // Local path, URL or Binary data
DestinationID = 3;
+1 -1
View File
@@ -1,6 +1,6 @@
Token = "ya29.a0ATi6K2sWW_31WLH0d9aK0qk0HJ-UfyvZDcLeBbF5bLU7QH09Bx2pXAupIw40USQVaxXqsovItVSt9swWuPdBDSA0eFaVPE0CbaU2OLQlyrnITI1VVXgZ_Gx2R...";
NewName = "UpdatedFile.jpg";
Identifier = "1oUMoSImbl8NKBVWQE9zkBdJ0QIPrkhtb";
File = "https://hut.openintegrations.dev/test_data/picture2.jpg"; // URL, Binary Data or File path
File = "https://hut.openintegrations.dev/test_data/picture2.jpg"; // URL, Binary data or File path
Result = OPI_GoogleDrive.UpdateFile(Token, Identifier, File, NewName);
+1 -1
View File
@@ -1,6 +1,6 @@
Token = "ya29.a0ATi6K2sWW_31WLH0d9aK0qk0HJ-UfyvZDcLeBbF5bLU7QH09Bx2pXAupIw40USQVaxXqsovItVSt9swWuPdBDSA0eFaVPE0CbaU2OLQlyrnITI1VVXgZ_Gx2R...";
Directory = "1RA5EV-HEr2SDzooZLmZ2h6HnnmZ0EHzP";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Binary Data or File path
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Binary data or File path
Clear = False;
Description = OPI_GoogleDrive.GetFileDescription(Clear);
+1 -1
View File
@@ -3,7 +3,7 @@
IdInstance = "71051...";
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
File = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
File = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
FileName = "photo.jpg";
ChatID = "120363410406221140@g.us";
Description = "File description";
+1 -1
View File
@@ -3,7 +3,7 @@
IdInstance = "71051...";
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
GroupID = "120363421084000163@g.us";
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
+1 -1
View File
@@ -3,7 +3,7 @@
IdInstance = "71051...";
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
Result = OPI_GreenAPI.SetProfilePicture(AccessParameters, Image);
+1 -1
View File
@@ -3,7 +3,7 @@
IdInstance = "31003...";
ApiTokenInstance = "17915d8e0b4b4975a183478da...";
File = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
File = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
FileName = "photo.jpg";
ChatID = 12345678;
Description = "File description";
+1 -1
View File
@@ -3,7 +3,7 @@
IdInstance = "31003...";
ApiTokenInstance = "17915d8e0b4b4975a183478da...";
Image = "https://hut.openintegrations.dev/test_data/spy2.png"; // URL, Path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/spy2.png"; // URL, Path or Binary data
ChatID = 12345678;
AccessParameters = OPI_GreenMax.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
+1 -1
View File
@@ -3,7 +3,7 @@
IdInstance = "31003...";
ApiTokenInstance = "17915d8e0b4b4975a183478da...";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
AccessParameters = OPI_GreenMax.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
Result = OPI_GreenMax.SetProfilePicture(AccessParameters, Image);
+1 -1
View File
@@ -1,7 +1,7 @@
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
+1 -1
View File
@@ -1,7 +1,7 @@
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
+1 -1
View File
@@ -1,7 +1,7 @@
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
+1 -1
View File
@@ -1,7 +1,7 @@
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
+1 -1
View File
@@ -1,7 +1,7 @@
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
+1 -1
View File
@@ -1,7 +1,7 @@
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
+1 -1
View File
@@ -2,7 +2,7 @@
URL = URL + "/put";
ChunkSize = 524288;
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
+1 -1
View File
@@ -1,7 +1,7 @@
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
+1 -1
View File
@@ -1,7 +1,7 @@
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
+1 -1
View File
@@ -1,7 +1,7 @@
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
Token = "***";
Secret = "***";
+1 -1
View File
@@ -1,7 +1,7 @@
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
+1 -1
View File
@@ -57,7 +57,7 @@
// SQL query from file
SQLFile = "https://hut.openintegrations.dev/test_data/TEST_DATA2.sql"; // Binary Data, URL or path to file
SQLFile = "https://hut.openintegrations.dev/test_data/TEST_DATA2.sql"; // Binary data, URL or path to file
Result = OPI_MSSQL.ExecuteSQLQuery(SQLFile, , , Connection);
+1 -1
View File
@@ -61,7 +61,7 @@
// SQL query from file
SQLFile = "https://hut.openintegrations.dev/test_data/TEST_DATA2.sql"; // Binary Data, URL or path to file
SQLFile = "https://hut.openintegrations.dev/test_data/TEST_DATA2.sql"; // Binary data, URL or path to file
Result = OPI_MySQL.ExecuteSQLQuery(SQLFile, , , Connection);
+1 -1
View File
@@ -1,5 +1,5 @@
Token = "f1e616e20ab5893b...";
Data = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Data = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
Path = "testfolder/test_pic.png";
Result = OPI_Neocities.UploadFile(Token, Path, Data);
+3 -3
View File
@@ -1,8 +1,8 @@
Token = "f1e616e20ab5893b...";
Image1 = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Image2 = "https://hut.openintegrations.dev/test_data/picture2.jpg"; // URL, Path or Binary Data
GIF = "https://hut.openintegrations.dev/test_data/animation.gif"; // URL, Path or Binary Data
Image1 = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
Image2 = "https://hut.openintegrations.dev/test_data/picture2.jpg"; // URL, Path or Binary data
GIF = "https://hut.openintegrations.dev/test_data/animation.gif"; // URL, Path or Binary data
FileMapping = New Map;
FileMapping.Insert("test/pic1.png", Image1);
+1 -1
View File
@@ -1,6 +1,6 @@
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
Base = "29d82aa7-fc4e-8173-83c3-eef87a456cc4";
Image_ = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Binary Data or File path
Image_ = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Binary data or File path
Image = New Map;
Image.Insert("Logo", Image_);
+1 -1
View File
@@ -1,7 +1,7 @@
URL = "https://hut.openintegrations.dev/ollama";
Token = "12We34..."; // Authorization - not part API Ollama
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
AdditionalHeaders = New Map;
AdditionalHeaders.Insert("Authorization", StrTemplate("Bearer %1", Token));
+1 -1
View File
@@ -15,7 +15,7 @@
// Pictures
Model = "moondream2-20250414";
File = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
File = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
FileName = StrTemplate("%1.png", String(New UUID()));
Destination = "user_data";
+1 -1
View File
@@ -1,7 +1,7 @@
URL = "https://hut.openintegrations.dev/localai/";
Token = "12We34...";
File = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
File = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
FileName = StrTemplate("%1.png", String(New UUID()));
Destination = "assistants";
+1 -1
View File
@@ -73,7 +73,7 @@
// SQL query from file
SQLFile = "https://hut.openintegrations.dev/test_data/TEST_DATA.sql"; // Binary Data, URL or path to file
SQLFile = "https://hut.openintegrations.dev/test_data/TEST_DATA.sql"; // Binary data, URL or path to file
Result = OPI_PostgreSQL.ExecuteSQLQuery(SQLFile, , , Connection);
+1 -1
View File
@@ -9,7 +9,7 @@
Directory = True; // Formation URL in path-style
Bucket = "w567hjy1";
Entity = "https://hut.openintegrations.dev/test_data/song.mp3"; // URL, Path or Binary Data
Entity = "https://hut.openintegrations.dev/test_data/song.mp3"; // URL, Path or Binary data
Entity = OPI_HTTPRequests.Get(Entity);
Result = OPI_S3.InitPartsUpload(Name, Bucket, BasicData, , Directory);
+1 -1
View File
@@ -9,7 +9,7 @@
Directory = True; // Formation URL in path-style
Bucket = "w567hjy1";
Entity = "https://hut.openintegrations.dev/test_data/song.mp3"; // URL, Path or Binary Data
Entity = "https://hut.openintegrations.dev/test_data/song.mp3"; // URL, Path or Binary data
Entity = OPI_HTTPRequests.Get(Entity);
Result = OPI_S3.InitPartsUpload(Name, Bucket, BasicData, , Directory);
+2 -2
View File
@@ -8,12 +8,12 @@
Directory = True; // Formation URL in path-style
Bucket = "w567hjy1";
Name = "picture.jpg";
Entity = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Entity = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
Result = OPI_S3.PutObject(Name, Bucket, Entity, BasicData, , Directory);
Name = "fileChunked.mp3";
Entity = "https://hut.openintegrations.dev/test_data/song.mp3"; // URL, Path or Binary Data
Entity = "https://hut.openintegrations.dev/test_data/song.mp3"; // URL, Path or Binary data
BasicData.Insert("ChunkSize", 5242880); // Size parts for upload in multiple of requests
+1 -1
View File
@@ -6,6 +6,6 @@
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
Method = "PUT";
Body = "C:\test_data\document.docx"; // URL, Path or Binary Data
Body = "C:\test_data\document.docx"; // URL, Path or Binary data
Result = OPI_S3.SendRequestWithBody(Method, BasicData, Body);
+1 -1
View File
@@ -6,7 +6,7 @@
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
Name = "pictureSmall.jpg";
Entity = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Entity = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
Directory = True; // Formation URL in path-style
Bucket = "w567hjy1";
+1 -1
View File
@@ -9,7 +9,7 @@
Directory = True; // Formation URL in path-style
Bucket = "w567hjy1";
Entity = "https://hut.openintegrations.dev/test_data/song.mp3"; // URL, Path or Binary Data
Entity = "https://hut.openintegrations.dev/test_data/song.mp3"; // URL, Path or Binary data
Entity = OPI_HTTPRequests.Get(Entity);
Result = OPI_S3.InitPartsUpload(Name, Bucket, BasicData, , Directory);
+2 -2
View File
@@ -1,7 +1,7 @@
If OPI_Tools.IsWindows() Then
Extension = "https://hut.openintegrations.dev/test_data/uuid.dll"; // URL, Path or Binary Data
Extension = "https://hut.openintegrations.dev/test_data/uuid.dll"; // URL, Path or Binary data
Else
Extension = "https://hut.openintegrations.dev/test_data/uuid.so"; // URL, Path or Binary Data
Extension = "https://hut.openintegrations.dev/test_data/uuid.so"; // URL, Path or Binary data
EndIf;
Base = "/tmp/vnnmoosn.qqb.sqlite";
+2 -2
View File
@@ -60,9 +60,9 @@
// With extension
If OPI_Tools.IsWindows() Then
Extension = "https://hut.openintegrations.dev/test_data/uuid.dll"; // URL, Path or Binary Data
Extension = "https://hut.openintegrations.dev/test_data/uuid.dll"; // URL, Path or Binary data
Else
Extension = "https://hut.openintegrations.dev/test_data/uuid.so"; // URL, Path or Binary Data
Extension = "https://hut.openintegrations.dev/test_data/uuid.so"; // URL, Path or Binary data
EndIf;
EntryPoint = "sqlite3_uuid_init";
+1 -1
View File
@@ -1,6 +1,6 @@
Token = "xoxb-6965308400114-696804637...";
Channel = "C06UFNUTKUL";
File = "https://hut.openintegrations.dev/test_data/document.docx"; // URL, Binary Data or File path
File = "https://hut.openintegrations.dev/test_data/document.docx"; // URL, Binary data or File path
FileName = "megadoc.docx";
Title = "NewFile";
+2 -1
View File
@@ -2,4 +2,5 @@
Connection = OPI_TCP.CreateConnection(Address);
Data = "Hello server!" + Chars.LF;
Sending = OPI_TCP.SendLine(Connection, Data);
Sending = OPI_TCP.SendLine(Connection, Data);
Result = OPI_TCP.GetLastError(Connection);
+1 -1
View File
@@ -1,4 +1,4 @@
Port = 9876;
PoolSize = 10;
Host = OPI_TCP.StartServer(Port, PoolSize);
Result = OPI_TCP.StartServer(Port, PoolSize);
+1 -1
View File
@@ -1,4 +1,4 @@
Token = "6129457865:AAFyzNYOAFbu...";
URL = "https://api.athenaeum.digital/opi/hs/twitter";
URL = "https://hut.openintegrations.dev";
Result = OPI_Telegram.SetWebhook(Token, URL);
+2 -2
View File
@@ -2,8 +2,8 @@
Text = "Post from autotest";
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Video = "https://hut.openintegrations.dev/test_data/video.mp4"; // URL, Path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
Video = "https://hut.openintegrations.dev/test_data/video.mp4"; // URL, Path or Binary data
TFN = GetTempFileName("png");
CopyFile(Image, TFN);
+1 -1
View File
@@ -10,6 +10,6 @@
// With picture
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, File path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, File path or Binary data
Result = OPI_VK.CreatePoll(Question, OptionArray, Image, , Parameters);
+2 -2
View File
@@ -2,8 +2,8 @@
Text = "Post from autotest";
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Image2 = "https://hut.openintegrations.dev/test_data/picture2.jpg"; // URL, Path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
Image2 = "https://hut.openintegrations.dev/test_data/picture2.jpg"; // URL, Path or Binary data
TFN = GetTempFileName("png");
CopyFile(Image2, TFN);
+1 -1
View File
@@ -1,7 +1,7 @@
Parameters = GetVKParameters();
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, File path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, File path or Binary data
TFN = GetTempFileName("png");
CopyFile(Image, TFN);
Image = New BinaryData(TFN);
+1 -1
View File
@@ -2,6 +2,6 @@
ImageDescription = "AutoTestImage";
AlbumID = "310586206";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, File path or Binary Data
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, File path or Binary data
Result = OPI_VK.SaveImageToAlbum(AlbumID, Image, ImageDescription, Parameters);
+1 -1
View File
@@ -1,6 +1,6 @@
Parameters = GetVKParameters();
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Binary Data or File path
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Binary data or File path
View = "Post";
Result = OPI_VK.UploadPhotoToServer(Image, Parameters, View);
+1 -1
View File
@@ -1,6 +1,6 @@
Parameters = GetVKParameters();
Video = "https://hut.openintegrations.dev/test_data/video.mp4"; // URL, Binary Data or File path
Video = "https://hut.openintegrations.dev/test_data/video.mp4"; // URL, Binary data or File path
Name = "NewVideo";
Description = "Video description";
+2 -2
View File
@@ -10,10 +10,10 @@
Result = OPI_VKTeams.ChangeChatPicture(Token, ChatID, File);
Process(Result, "VKTeams", "ChangeChatPicture", "URL");
OPI_TestDataRetrieval.Process(Result, "VKTeams", "ChangeChatPicture", "URL");
Result = OPI_VKTeams.ChangeChatPicture(Token, ChatID, FilePath);
Process(Result, "VKTeams", "ChangeChatPicture", "Path");
OPI_TestDataRetrieval.Process(Result, "VKTeams", "ChangeChatPicture", "Path");
Result = OPI_VKTeams.ChangeChatPicture(Token, ChatID, FileBD);
+35
View File
@@ -0,0 +1,35 @@
Address = "wss://127.0.0.1:8443";
NeedProxy = True;
NeedTLS = True;
Headers = New Map;
Headers.Insert("X-Trace-Id", "OPI-WS-TEST");
If NeedTls Then
TLSSettings = OPI_WebSocket.GetTlsSettings(True);
EndIf;
If NeedProxy Then
ProxyAddress = "127.0.0.1";
ProxyPort = "8071";
ProxyType = "http";
ProxtUser = "proxyuser";
ProxyPassword = "12we...";
ProxySettings = OPI_AddIns.GetProxySettings(ProxyAddress
, ProxyPort
, ProxyType
, ProxtUser
, ProxyPassword);
EndIf;
Connection = OPI_WebSocket.CreateConnection(Address, TLSSettings, ProxySettings, Headers);
If OPI_WebSocket.IsClientObject(Connection) Then
Result = OPI_WebSocket.CloseConnection(Connection);
Else
Result = Connection;
EndIf;
+21
View File
@@ -0,0 +1,21 @@
// Server start
LaunchPort = 9894;
ServerObject = OPI_WebSocket.StartServer(LaunchPort);
// Client connect to server
ConnectionAddress = "ws://127.0.0.1:9894";
ClientObject = OPI_WebSocket.CreateConnection(ConnectionAddress);
If Not OPI_WebSocket.IsClientObject(ClientObject) Then
Raise OPI_Tools.JSONString(ClientObject);
EndIf;
// Client message send
Message = "Hello!";
OPI_WebSocket.SendTextMessage(ClientObject, Message);
// Receiving and closing connection on the server
FirstMessage = OPI_WebSocket.GetNextConnectionData(ServerObject, 5000);
ConnectionID = FirstMessage["connectionId"];
Result = OPI_WebSocket.CloseIncomingConnection(ServerObject, ConnectionID, True);
+29
View File
@@ -0,0 +1,29 @@
Address = "wss://127.0.0.1:8443";
NeedProxy = True;
NeedTLS = True;
Headers = New Map;
Headers.Insert("X-Trace-Id", "OPI-WS-TEST");
If NeedTls Then
TLSSettings = OPI_WebSocket.GetTlsSettings(True);
EndIf;
If NeedProxy Then
ProxyAddress = "127.0.0.1";
ProxyPort = "8071";
ProxyType = "http";
ProxtUser = "proxyuser";
ProxyPassword = "12we...";
ProxySettings = OPI_AddIns.GetProxySettings(ProxyAddress
, ProxyPort
, ProxyType
, ProxtUser
, ProxyPassword);
EndIf;
Result = OPI_WebSocket.CreateConnection(Address, TLSSettings, ProxySettings, Headers);
+33
View File
@@ -0,0 +1,33 @@
Address = "wss://127.0.0.1:8443";
NeedProxy = True;
NeedTLS = True;
If NeedTls Then
TLSSettings = OPI_WebSocket.GetTlsSettings(True);
EndIf;
If NeedProxy Then
ProxyAddress = "127.0.0.1";
ProxyPort = "8071";
ProxyType = "http";
ProxtUser = "proxyuser";
ProxyPassword = "12we...";
ProxySettings = OPI_AddIns.GetProxySettings(ProxyAddress
, ProxyPort
, ProxyType
, ProxtUser
, ProxyPassword);
EndIf;
LogFile = GetTempFileName("txt");
LoggingSettings = OPI_WebSocket.GetLoggingSettings(True, 100, LogFile);
Connection = OPI_WebSocket.CreateConnection(Address, TLSSettings, ProxySettings, Undefined, LoggingSettings);
If Not OPI_WebSocket.IsClientObject(Connection) Then
Raise OPI_Tools.JSONString(Connection);
EndIf;
Result = OPI_WebSocket.GetLog(Connection);
+35
View File
@@ -0,0 +1,35 @@
// Server start
LaunchPort = 9894;
ServerObject = OPI_WebSocket.StartServer(LaunchPort);
// Client connect to server
ConnectionAddress = "ws://127.0.0.1:9894";
ClientObject = OPI_WebSocket.CreateConnection(ConnectionAddress);
If Not OPI_WebSocket.IsClientObject(ClientObject) Then
Raise OPI_Tools.JSONString(ClientObject);
EndIf;
// Getting a list of active connections on the server
ConnectionList = OPI_WebSocket.GetConnectionList(ServerObject);
If Not ConnectionList["result"] Then
Raise OPI_Tools.JSONString(ConnectionList);
EndIf;
If ConnectionList["connections"].Count() = 0 Then
Raise "Connection list is empty";
Else
ConnectionID = ConnectionList["connections"][0]["connectionId"];
EndIf;
For N = 0 To 5 Do
// Client message send
CurrentMessage = StrTemplate("Message no. %1", N);
OPI_WebSocket.SendTextMessage(ClientObject, CurrentMessage);
// Receiving an incoming message on the server by ID
Result = OPI_WebSocket.GetConnectionData(ServerObject, ConnectionID, 5000);
EndDo;
+20
View File
@@ -0,0 +1,20 @@
// Server start
LaunchPort = 9894;
ServerObject = OPI_WebSocket.StartServer(LaunchPort);
// Creating multiple client connections
ConnectionAddress = "ws://127.0.0.1:9894";
Client1 = OPI_WebSocket.CreateConnection(ConnectionAddress);
Client2 = OPI_WebSocket.CreateConnection(ConnectionAddress);
If Not OPI_WebSocket.IsClientObject(Client1) Then
Raise OPI_Tools.JSONString(Client1);
EndIf;
If Not OPI_WebSocket.IsClientObject(Client2) Then
Raise OPI_Tools.JSONString(Client2);
EndIf;
// Getting a list of active connections on the server
Result = OPI_WebSocket.GetConnectionList(ServerObject);
+15
View File
@@ -0,0 +1,15 @@
// Server start
LaunchPort = 9894;
LogFile = GetTempFileName("txt");
LoggingSettings = OPI_WebSocket.GetLoggingSettings(True, 100, LogFile);
ServerObject = OPI_WebSocket.StartServer(LaunchPort, , LoggingSettings);
// Client connect to server
ConnectionAddress = "ws://127.0.0.1:9894";
ClientObject = OPI_WebSocket.CreateConnection(ConnectionAddress);
If Not OPI_WebSocket.IsClientObject(ClientObject) Then
Raise OPI_Tools.JSONString(ClientObject);
EndIf;
// Server log retrieval
Result = OPI_WebSocket.GetLog(ServerObject);
+1
View File
@@ -0,0 +1 @@
Result = OPI_WebSocket.GetLoggingSettings(True, 100, GetTempFileName());
+53
View File
@@ -0,0 +1,53 @@
Address = "wss://127.0.0.1:8443";
NeedProxy = True;
NeedTLS = True;
Headers = New Map;
Headers.Insert("X-Trace-Id", "OPI-WS-TEST");
If NeedTls Then
TLSSettings = OPI_WebSocket.GetTlsSettings(True);
EndIf;
If NeedProxy Then
ProxyAddress = "127.0.0.1";
ProxyPort = "8071";
ProxyType = "http";
ProxtUser = "proxyuser";
ProxyPassword = "12we...";
ProxySettings = OPI_AddIns.GetProxySettings(ProxyAddress
, ProxyPort
, ProxyType
, ProxtUser
, ProxyPassword);
EndIf;
Connection = OPI_WebSocket.CreateConnection(Address, TLSSettings, ProxySettings, Headers);
Message = "echo-text-" + Format(CurrentDate(), "DF=yyyyMMddhhmmss");
If OPI_WebSocket.IsClientObject(Connection) Then
// Sending a message to the ECHO server
Sending = OPI_WebSocket.SendTextMessage(Connection, Message);
// Skipping all responses from the server until the last one
While True Do
LastMessage = OPI_WebSocket.GetMessage(Connection, 3000); // <----
If LastMessage["result"] Then
Result = LastMessage;
Else
Break;
EndIf;
EndDo;
Else
Result = Connection;
EndIf;
+18
View File
@@ -0,0 +1,18 @@
// Server start
LaunchPort = 9894;
ServerObject = OPI_WebSocket.StartServer(LaunchPort);
// Client connect to server
ConnectionAddress = "ws://127.0.0.1:9894";
ClientObject = OPI_WebSocket.CreateConnection(ConnectionAddress);
If Not OPI_WebSocket.IsClientObject(ClientObject) Then
Raise OPI_Tools.JSONString(ClientObject);
Else
// Client send
Message = "Hello from client!";
Sending = OPI_WebSocket.SendTextMessage(ClientObject, Message);
EndIf;
// Server receive
Result = OPI_WebSocket.GetNextConnectionData(ServerObject, 5000);
+8
View File
@@ -0,0 +1,8 @@
ProxyType = "http";
ProxyAddress = "127.0.0.1";
ProxyPort = "8071";
ProxyLogin = "proxyuser";
ProxyPassword = "12we...";
Result = OPI_WebSocket.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
+1
View File
@@ -0,0 +1 @@
Result = OPI_WebSocket.GetTlsSettings(True);
+30
View File
@@ -0,0 +1,30 @@
Address = "wss://127.0.0.1:8443";
NeedProxy = True;
NeedTLS = True;
Headers = New Map;
Headers.Insert("X-Trace-Id", "OPI-WS-TEST");
If NeedTls Then
TLSSettings = OPI_WebSocket.GetTlsSettings(True);
EndIf;
If NeedProxy Then
ProxyAddress = "127.0.0.1";
ProxyPort = "8071";
ProxyType = "http";
ProxtUser = "proxyuser";
ProxyPassword = "12we...";
ProxySettings = OPI_AddIns.GetProxySettings(ProxyAddress
, ProxyPort
, ProxyType
, ProxtUser
, ProxyPassword);
EndIf;
Connection = OPI_WebSocket.CreateConnection(Address, TLSSettings, ProxySettings, Headers);
Result = OPI_WebSocket.IsClientObject(Connection);
+4
View File
@@ -0,0 +1,4 @@
Port = 9894;
Host = OPI_WebSocket.StartServer(Port);
Result = OPI_WebSocket.IsServerObject(Host);
+38
View File
@@ -0,0 +1,38 @@
Address = "wss://127.0.0.1:8443";
NeedProxy = True;
NeedTLS = True;
Headers = New Map;
Headers.Insert("X-Trace-Id", "OPI-WS-TEST");
If NeedTls Then
TLSSettings = OPI_WebSocket.GetTlsSettings(True);
EndIf;
If NeedProxy Then
ProxyAddress = "127.0.0.1";
ProxyPort = "8071";
ProxyType = "http";
ProxtUser = "proxyuser";
ProxyPassword = "12we...";
ProxySettings = OPI_AddIns.GetProxySettings(ProxyAddress
, ProxyPort
, ProxyType
, ProxtUser
, ProxyPassword);
EndIf;
Connection = OPI_WebSocket.CreateConnection(Address, TLSSettings, ProxySettings, Headers);
SourceLine = "binary-message-" + Format(CurrentDate(), "DF=yyyyMMddhhmmss");
Data = GetBinaryDataFromString(SourceLine);
If OPI_WebSocket.IsClientObject(Connection) Then
Result = OPI_WebSocket.SendBinaryMessage(Connection, Data);
Else
Result = Connection;
EndIf;
+22
View File
@@ -0,0 +1,22 @@
// Server start
LaunchPort = 9894;
ServerObject = OPI_WebSocket.StartServer(LaunchPort);
// Client connect to server
ConnectionAddress = "ws://127.0.0.1:9894";
ClientObject = OPI_WebSocket.CreateConnection(ConnectionAddress);
If Not OPI_WebSocket.IsClientObject(ClientObject) Then
Raise OPI_Tools.JSONString(ClientObject);
EndIf;
// Client message send
Message = "Hello!";
OPI_WebSocket.SendTextMessage(ClientObject, Message);
// Receiving the next connection on the server and returning a response
NextMessage = OPI_WebSocket.GetNextConnectionData(ServerObject, 5000);
ConnectionID = NextMessage["connectionId"];
ServerResponse = "Response from server!";
Result = OPI_WebSocket.SendData(ServerObject, ConnectionID, ServerResponse);
+53
View File
@@ -0,0 +1,53 @@
Address = "wss://127.0.0.1:8443";
NeedProxy = True;
NeedTLS = True;
Headers = New Map;
Headers.Insert("X-Trace-Id", "OPI-WS-TEST");
If NeedTls Then
TLSSettings = OPI_WebSocket.GetTlsSettings(True);
EndIf;
If NeedProxy Then
ProxyAddress = "127.0.0.1";
ProxyPort = "8071";
ProxyType = "http";
ProxtUser = "proxyuser";
ProxyPassword = "12we...";
ProxySettings = OPI_AddIns.GetProxySettings(ProxyAddress
, ProxyPort
, ProxyType
, ProxtUser
, ProxyPassword);
EndIf;
Connection = OPI_WebSocket.CreateConnection(Address, TLSSettings, ProxySettings, Headers);
If OPI_WebSocket.IsClientObject(Connection) Then
Result = OPI_WebSocket.SendPing(Connection);
// Skipping all responses from the server until the last one
While True Do
LastMessage = OPI_WebSocket.GetMessage(Connection, 3000);
If LastMessage["result"] Then
// Next message
Check = LastMessage;
Else
// No more messages
Break;
EndIf;
EndDo;
Else
Result = Connection;
Check = Connection;
EndIf;
+35
View File
@@ -0,0 +1,35 @@
Address = "wss://127.0.0.1:8443";
NeedProxy = True;
NeedTLS = True;
Headers = New Map;
Headers.Insert("X-Trace-Id", "OPI-WS-TEST");
If NeedTls Then
TLSSettings = OPI_WebSocket.GetTlsSettings(True);
EndIf;
If NeedProxy Then
ProxyAddress = "127.0.0.1";
ProxyPort = "8071";
ProxyType = "http";
ProxtUser = "proxyuser";
ProxyPassword = "12we...";
ProxySettings = OPI_AddIns.GetProxySettings(ProxyAddress
, ProxyPort
, ProxyType
, ProxtUser
, ProxyPassword);
EndIf;
Connection = OPI_WebSocket.CreateConnection(Address, TLSSettings, ProxySettings, Headers);
If OPI_WebSocket.IsClientObject(Connection) Then
Result = OPI_WebSocket.SendPong(Connection);
Else
Result = Connection;
EndIf;
+37
View File
@@ -0,0 +1,37 @@
Address = "wss://127.0.0.1:8443";
NeedProxy = True;
NeedTLS = True;
Headers = New Map;
Headers.Insert("X-Trace-Id", "OPI-WS-TEST");
If NeedTls Then
TLSSettings = OPI_WebSocket.GetTlsSettings(True);
EndIf;
If NeedProxy Then
ProxyAddress = "127.0.0.1";
ProxyPort = "8071";
ProxyType = "http";
ProxtUser = "proxyuser";
ProxyPassword = "12we...";
ProxySettings = OPI_AddIns.GetProxySettings(ProxyAddress
, ProxyPort
, ProxyType
, ProxtUser
, ProxyPassword);
EndIf;
Connection = OPI_WebSocket.CreateConnection(Address, TLSSettings, ProxySettings, Headers);
Message = "echo-text-" + Format(CurrentDate(), "DF=yyyyMMddhhmmss");
If OPI_WebSocket.IsClientObject(Connection) Then
Result = OPI_WebSocket.SendTextMessage(Connection, Message);
Else
Result = Connection;
EndIf;
+4
View File
@@ -0,0 +1,4 @@
Port = 9894;
PoolSize = 10;
Result = OPI_WebSocket.StartServer(Port, PoolSize);
+4
View File
@@ -0,0 +1,4 @@
Port = 9894;
ServerObject = OPI_WebSocket.StartServer(Port);
Result = OPI_WebSocket.StopServer(ServerObject);
+1 -1
View File
@@ -5,7 +5,7 @@ keywords: [1C, 1С, 1С:Предприятие, OneScript, CLI, HTTP, прокс
# Расширенный вызов
Для некоторых методов ОПИ доступно использование функции **расширенного вызова** - передачи дополнительных настроек внутренних механизмов библиотеки, которые не входят в обычную сигнатуру вызываемой функции
Для некоторых методов ОПИ доступно использование функции **расширенного вызова** - передачи дополнительных параметров для внутренних механизмов библиотеки, которые не входят в обычную сигнатуру вызываемой функции
## Использование в 1С:Предприятие и OneScript