reason

Returns the WebSocket connection close reason provided by the server.

MDN Reference