Skip to content

Commit

Permalink
Expose 'security' for SSL pinning
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksym Korytko authored and ketenshi committed Mar 3, 2020
1 parent f868be6 commit 84c7cd9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/ApolloWebSocket/WebSocketTransport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ public class WebSocketTransport {
}
}

public var security: SSLTrustValidator? {
didSet {
websocket.security = security
}
}

/// Designated initializer
///
/// - Parameter request: The connection URLRequest
Expand Down

0 comments on commit 84c7cd9

Please sign in to comment.