1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-06-09 23:56:48 +02:00
Files
Vitaly the Alpaca (bot) 8873bf6e5a Main build (Jenkins)
2026-03-17 16:14:41 +03:00

15 lines
571 B
Plaintext
Vendored

LaunchPort = 9877;
ServerObject = OPI_TCP.StartServer(LaunchPort);
// Connect to running server
ConnectionAddress = "127.0.0.1:9877";
ClientObject = OPI_TCP.CreateConnection(ConnectionAddress);
If Not OPI_TCP.IsClientObject(ClientObject) Then
Raise OPI_Tools.JSONString(ClientObject);
EndIf;
ActiveConnections = OPI_TCP.GetConnectionList(ServerObject);
ConnectionID = ActiveConnections["connections"][0]["connectionId"];
// Finish sending from server
Result = OPI_TCP.CompleteSend(ServerObject, ConnectionID);