Skip to main content

Create Connection

Opens a new RCON connection

Function CreateConnection(Val ConnectionParams) Export

ParameterCLI optionTypeRequiredDescription
ConnectionParams-Structure Of KeyAndValueConnection parameters. See FormConnectionParameters

Returns: Arbitrary - Connector object or structure with error information


caution

NOCLI: this method is not available in CLI version


1C:Enterprise/OneScript code example
    URL          = "127.0.0.1:25565";
Password = "Jg9F...";
WriteTimeout = 20;
ReadTimeout = 20;

ConnectionParams = OPI_RCON.FormConnectionParameters(URL, Password, ReadTimeout, WriteTimeout);
Result = OPI_RCON.CreateConnection(ConnectionParams);
Result
NOT JSON: AddIn.OPI_RCON.Main