TX Text Control .NET Server

Javascript: WebSocketClosedEventArgs.wasClean Property

Property|Introduced in 24.0

Description

Indicates whether or not the connection was cleanly closed.

Syntax

<boolean> WebSocketClosedEventArgs.wasClean

Examples

The following example demonstrates WebSocketClosedEventArgs.wasClean in a practical document-editing workflow. Indicates whether or not the connection was cleanly closed.

function inspectWasClean(webSocketClosedEventArgs) {
    const wasClean = webSocketClosedEventArgs.wasClean;
    console.log("was clean:", wasClean);
}