← Back to index
interface CloseEvent
extends Event

Properties

🔗
code: number

Returns the WebSocket connection close code provided by the server.

🔗
reason: string

Returns the WebSocket connection close reason provided by the server.

🔗
wasClean: boolean

Returns true if the connection closed cleanly; false otherwise.