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

string

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

DestroyFunction

Returns a function that can be called to stop monitoring and release all associated resources.

watch 1:

Available from version 1.12