Stop server
Shuts down the server
- Parameters
- Advanced call ?
Function StopServer(Val ServerObject) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| ServerObject | - | Arbitrary | ✔ | Object of running server component |
Returns
Map Of KeyAndValue - Execution result
This method has no additional advanced call parameters.
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
}