From 84c7cd9a2a3183a825db0ff29878ecd6dadcadda Mon Sep 17 00:00:00 2001 From: Maksym Korytko Date: Mon, 4 Mar 2019 16:19:51 -0500 Subject: [PATCH] Expose 'security' for SSL pinning --- Sources/ApolloWebSocket/WebSocketTransport.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sources/ApolloWebSocket/WebSocketTransport.swift b/Sources/ApolloWebSocket/WebSocketTransport.swift index 52dcbeffff..c72aa17399 100644 --- a/Sources/ApolloWebSocket/WebSocketTransport.swift +++ b/Sources/ApolloWebSocket/WebSocketTransport.swift @@ -62,6 +62,12 @@ public class WebSocketTransport { } } + public var security: SSLTrustValidator? { + didSet { + websocket.security = security + } + } + /// Designated initializer /// /// - Parameter request: The connection URLRequest