# Class: CloseEvent
# Hierarchy
-
↳ CloseEvent
# Table of contents
# Constructors
# Properties
# Constructors
# constructor
+ new CloseEvent(code?
: number, reason?
: string, target
: any): CloseEvent
# Parameters
Name | Type | Default value |
---|---|---|
code | number | 1000 |
reason | string | "" |
target | any | - |
Returns: CloseEvent
Overrides: WebSocketEvent
# Properties
# code
• code: number
# reason
• reason: string
# target
• target: any
Inherited from: WebSocketEvent.target
# type
• type: string
Inherited from: WebSocketEvent.type
# wasClean
• wasClean: boolean= true