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 | Options | |
callback [ optional ] | Asynchronous callback function that is triggered when the operation was terminated. |
Return value
Type | Description |
---|---|
Returns confirmation as to whether the operation was successfully sent. |
Available from version 1.10 |
Sample - JavaScript
TcHmi.Server.logoutEx({ timeout: 2000 }, function(data) {
if (data.error === TcHmi.Errors.NONE) {
// Success
} else {
// Error
}
});