The event argument object for the webSocketClosed event.

Syntax

{
   code: <number>,
   reason: <string>,
   wasClean: <boolean>
}

Introduced: X14.

Properties

Property Description
code The close code sent by the server.
reason The reason the server closed the connection.
wasClean Indicates whether or not the connection was cleanly closed.