wasClean
Summary
Indicates whether the WebSocket connection was cleanly closed.
Property of apis/websocket/CloseEventapis/websocket/CloseEvent
Syntax
Note: This property is read-only.
var result = element.wasClean;
Return Value
Returns an object of type BooleanBoolean
Examples
socket.onclose = function(event) {
var wasClean = event.wasClean;
};
Attributions
Mozilla Developer Network : Article
Microsoft Developer Network: Windows Internet Explorer API reference Article