Back to Alamofire

WebSocketMessageSerializer

docs/Protocols/WebSocketMessageSerializer.html

5.12.0944 B
Original Source

WebSocketMessageSerializer

public protocol WebSocketMessageSerializer<Output, Failure> : Sendable

Undocumented

`

                Output
                `

Undocumented

Declaration

Swift

associatedtype Output : Sendable

`

                Failure
                `

Undocumented

Declaration

Swift

associatedtype Failure : Error = any Error

`

                decode(_:)
                `

Undocumented

Declaration

Swift

func decode(_ message: URLSessionWebSocketTask.Message) throws -> Output

`

                json(decoding:using:)
                ` Extension method 

Undocumented

Declaration

Swift

public static func json<Value>(
    decoding _: Value.Type = Value.self,
    using decoder: JSONDecoder = JSONDecoder()
) -> DecodableWebSocketMessageDecoder<Value> where Self == DecodableWebSocketMessageDecoder<Value>