Javascript: WebSocketClosedEventArgs.wasClean Property
Description
Indicates whether or not the connection was cleanly closed.
Syntax
<boolean> WebSocketClosedEventArgs.wasCleanExamples
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);
}