A block of data that provides further information about why a connection closed.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
The close reason provides further information about why a connection closed, beyond that provided by the
close. The value of this property isn’t defined by RFC 6455; the endpoints define how it’s used.
You can retrieve the close reason at any time. When the task is not yet closed, this value is