Tells the delegate that the WebSocket task received a close frame from the server endpoint, optionally including a close code and reason from the server.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
The session of the WebSocket task that closed.
The WebSocket task that closed.
The close code provided by the server. If the close frame didn’t include a close code, this value is
The close reason provided by the server. If the close frame didn’t include a reason, this value is