Skip to main content

Stop server

Shuts down the server

Function StopServer(Val ServerObject) Export

ParameterCLI optionTypeRequiredDescription
ServerObject-ArbitraryObject of running server component

Returns: Map Of KeyAndValue - Execution result

caution

NOCLI: this method is not available in CLI version


1C:Enterprise/OneScript code example
    Port = 9877;
Host = OPI_TCP.StartServer(Port);

Result = OPI_TCP.StopServer(Host);
Result
{
"result": true
}