closeReason property
      
      String?
      get
      closeReason
      
    
    
The close reason set when the WebSocket connection is closed.
Before the connection has been closed, this will be null.
Implementation
String? get closeReason => _webSocket.closeReason;