watch
[ Function ]
public static watch(
name: string,
callback?: (data: TcHmi.Symbol.IWatchResultObject<Domains.IDomainInfo> | TcHmi.Symbol.IServerWatchResultObject<Domains.IDomainInfo>) => void
): DestroyFunction;
Monitors the status of a server domain / extension for changes.
Name | Type | Description |
---|---|---|
name | The name of the domain to be monitored. | |
callback | (data: TcHmi.Symbol.IWatchResultObject<Domains.IDomainInfo> | TcHmi.Symbol.IServerWatchResultObject<Domains.IDomainInfo>) => void | This is triggered when the result of the operation is available. |
Return value
Type | Description |
---|---|
Returns a function that can be called to stop monitoring and release all associated resources. |
Available from version 1.12 |