CloseEvent.reason - Web documentation
property CloseEvent.reason

Returns the WebSocket connection close reason provided by the server.

Type

string