title: CFNetwork SSLHandshake failed (-9807) in swamp connection
body: <pre><code>import Swamp
  
  class ViewController: UIViewController,SwampSessionDelegate,SwampTransportDelegate {
  
      let swampTransport = WebSocketSwampTransport(wsEndpoint:  URL(string: "wss://122.166.47.130:8086/ws")!)
  
      override func viewDidLoad() {
          super.viewDidLoad()
          connect()
      }
  
      func connect(){
          swampTransport.delegate = self
          let swampSession = SwampSession(realm: "open-realm", transport: swampTransport)
      //    let swampSession = SwampSession(realm: &lt;#T##String#&gt;, transport: &lt;#T##SwampTransport#&gt;, authmethods: &lt;#T##[String]?#&gt;, authid: &lt;#T##String?#&gt;, authrole: , authextra: &lt;#T##[String : Any]?#&gt;)
  
  
          swampSession.delegate = self
          swampSession.connect()
      }
  
      func swampSessionHandleChallenge(_ authMethod: String, extra: [String: Any]) -&gt; String{
          print("swampSessionHandleChallenge")
        return ""
      }
  
      func swampSessionConnected(_ session: SwampSession, sessionId: Int){
          print("swampSessionConnected")
          session.subscribe("wamp.topic", onSuccess: { subscription in
              print("sssddf")
          }, onError: { details, error in
              print("errorrrr")
          }, onEvent: { details, results, kwResults in
              print("aaaaaa")
          })
  
      }
  
      func swampSessionEnded(_ reason: String){
          print("swampSessionEnded= \(reason)")
  
      }
  
      public func swampTransportDidConnectWithSerializer(_ serializer: SwampSerializer){
          print("swfdgfsdg")
      }
  
      public func swampTransportDidDisconnect(_ error: NSError?, reason: String?){
          print("retryw")
      }
  
      public func swampTransportReceivedData(_ data: Data){
          print("uu7i7")
      }
  }
  </code></pre>
  
  <p>I'm getting the exception:</p>
  
  <blockquote>
    <p>CFNetwork SSLHandshake failed (-9807)</p>
  </blockquote>
  
  <p>I assume the realm value I added is correct but I am not certain. <code>Print()</code> is used for testing that connection.</p>