propertyCloseEvent.codereadonly code: numberReturns the WebSocket connection close code provided by the server.MDN Reference