May 2011
Intermediate to advanced
1096 pages
40h 54m
English
CloseEvent — specifies whether a WebSocket closed cleanly
Event
When a WebSocket connection closes, a nonbubbling, noncancelable close event is fired on the WebSocket object and an associated CloseEvent object is passed to any registered event handlers.
readonly boolean wasCleanIf the WebSocket connection closed in the controlled way
specified by WebSocket protocol, with acknowledgment between
client and server, the close is said to be
clean, and this property will be true. If this property is false, the WebSocket may have closed
as the result of a network error of some sort.
Read now
Unlock full access