WebSocketError


STRUCT

WebSocketError

Swift
1public struct WebSocketError: Error, LocalizedError

A structure for capturing problems and any associated errors from a WebSocketTransport.

Properties

payload

Swift
1public let payload: JSONObject?

The payload of the response.

error

Swift
1public let error: Error?

The underlying error, or nil if one was not returned

kind

Swift
1public let kind: ErrorKind

The kind of problem which occurred.

errorDescription

Swift
1public var errorDescription: String?
Feedback

Edit on GitHub

Forums