Skip to main content

Is server object

Checks that the value is an object of the TCP server external component

Function IsServerObject(Val Value) Export

ParameterCLI optionTypeRequiredDescription
Value-ArbitraryValue to check

Returns: Boolean - Is connector

caution

NOCLI: this method is not available in CLI version


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

Result = OPI_TCP.IsServerObject(Host);
Result
true