closeReason property

  1. @override
String? closeReason
override

The close reason set when the WebSocket connection is closed.

Before the connection has been closed, this will be null.

Implementation

@override
String? get closeReason => _webSocket?.closeReason;