     public var voipEnabled = false
     public var selfSignedSSL = false
     public var security: Security?
+    public var supportedSSLCypherSuites: [SSLCipherSuite]?
     public var isConnected :Bool {
         return connected
     }


import Foundation
import CoreFoundation

public protocol WebSocketDelegate: class {
    func websocketDidConnect(socket: WebSocket)

            inputStream!.setProperty(settings, forKey: kCFStreamPropertySSLSettings as! String)
            outputStream!.setProperty(settings, forKey: kCFStreamPropertySSLSettings as! String)
        }
        if let cypherSuites = self.supportedSSLCypherSuites {
            var sslContextIn: SSLContextRef = CFReadStreamCopyProperty(inputStream, kCFStreamPropertySSLContext) as! SSLContextRef
            var sslContextOut: SSLContextRef = CFWriteStreamCopyProperty(outputStream, kCFStreamPropertySSLContext) as! SSLContextRef
            SSLSetEnabledCiphers(sslContextIn, cypherSuites, cypherSuites.count)
            SSLSetEnabledCiphers(sslContextOut, cypherSuites, cypherSuites.count)
        }
        isRunLoop = true
        inputStream!.scheduleInRunLoop(NSRunLoop.currentRunLoop(), forMode: NSDefaultRunLoopMode)
        outputStream!.scheduleInRunLoop(NSRunLoop.currentRunLoop(), forMode: NSDefaultRunLoopMode)
