closeReason property

String closeReason
override

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;