This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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