Start server
Starts listening for messages on the specified port
Function StartServer(Val Port, Val PoolSize = 100, Val Logging = Undefined) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Port | - | Number | ✔ | Server port |
| PoolSize | - | Number | ✖ | Maximum number of simultaneously supported connections |
| Logging | - | Structure Of KeyAndValue | ✖ | Logging settings. See GetLoggingSettings |
Returns: Arbitrary - Server object or match with error information
caution
NOCLI: this method is not available in CLI version
1C:Enterprise/OneScript code example
Port = 9876;
PoolSize = 10;
Host = OPI_TCP.StartServer(Port, PoolSize);
Result
"AddIn.OPI_TCPServer.Main"