Stop server
Shuts down the server
Function StopServer(Val ServerObject) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| ServerObject | - | Arbitrary | ✔ | Object 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
}