logoutEx

[ Function ]

public static logoutEx(
    requestOptions: Server.IRequestOptions,
    callback: null | (data: TcHmi.IResultObject) => void
): boolean;

Logs out the current user.

Parameter

Name

Type

Description

requestOptions

Server.IRequestOptions

Options

callback [ optional ]

TcHmi.IResultObject

Asynchronous callback function that is triggered when the operation was terminated.

Return value

Type

Description

boolean

Returns confirmation as to whether the operation was successfully sent.

logoutEx 1:

Available from version 1.10

Sample - JavaScript

TcHmi.Server.logoutEx({ timeout: 2000 }, function(data) {
    if (data.error === TcHmi.Errors.NONE) {
        // Success
    } else {
        // Error
    }
});