closeReason property

  1. @override
String? get 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 => _closeReason;