IMessage
[ Interface ]
Version 1.8
export interface IMessage {
apiVersion?: string;
requestType: TcHmi.Server.IRequestType;
id?: number;
intervalTime?: number | null;
sessionId?: string;
error?: TcHmi.IErrorDetails;
customerData?: string;
commands?: TcHmi.Server.ICommand[];
};
Version 1.12
export interface IMessage<W = any, R = any> = IReadWriteMessage<W, R> | ISubscriptionMessage<W, R> | IEventMessage<W, R>;
From version 1.12, this message is modeled to be either ReadWrite, Subscription or Event.
Properties
Name | Type | Description |
---|---|---|
apiVersion [ optional ] | Version number of the API | |
requestType | Type of access | |
id [ Optional ] | Unique message number | |
intervalTime [ optional ] | Minimum time in which a subscription update (subscription tick) is sent. | |
sessionId [ optional ] | sessionID of the message | |
error [ optional ] | Error code of the message | |
customerData [ optional ] | Additional information that is applied from the query to the response | |
commands [ Optional ] | List of commands for this message |
Available from 1.8 |
From version 1.10.1018.48 the property "error" is of type "TcHmi.IErrorDetails" instead of "TcHmi.Server.IError". |