Extends: Event
See: https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent
- CloseEvent
- new CloseEvent(code, reason, wasClean)
- .code
- .reason
- .wasClean
- .type
- .isTrusted :
boolean - .target :
Node - .currentTarget :
Node - .bubbles :
boolean - .cancelable :
boolean - .eventPhase
- .defaultPrevented :
boolean - .returnValue :
\* - .preventDefault()
- .stopImmediatePropagation()
- .stopPropagation()
Creates an instance of CloseEvent.
| Param | Type |
|---|---|
| code | \* |
| reason | \* |
| wasClean | \* |
Returns: number - returns the close code sent by the server.
Returns: number - returns the string indicating the reason the server closed the connection..
Returns: boolean - returns a boolean that inndicates whether or not the connection was cleanly closed.
Read only
Read only
closeEvent.target : Node
Read only
closeEvent.currentTarget : Node
Read only
Read only
Read only
Read only
Read only