IWatchResultObject

[ Interface ]

export interface IWatchResultObject<T = any> extends TcHmi.IResultObject {
    value?: T;
    destroy?: TcHmi.DestroyFunction;
    response?: TcHmi.Server.IMessage<T>;
}

Result of a watch call (for example watchRecipe).

This interface extends TcHmi.IResultObject.

Properties

Name

Type

Description

value [optional]

T

Result of monitoring for change.

destroy

TcHmi.DestroyFunction

A function that can be called to terminate monitoring and release all associated resources.

response

TcHmi.Server.IMessage<T>

Direct response of the server with the change.

IWatchResultObject 1:

Available from version 1.12