diff --git a/Source/WebSocket.swift b/Source/WebSocket.swift index 3759966..83d2906 100644 --- a/Source/WebSocket.swift +++ b/Source/WebSocket.swift @@ -1018,7 +1018,7 @@ private class InnerWebSocket: Hashable { let port : Int if req.url!.scheme == "wss" { port = req.url!.port ?? 443 - security = .negoticatedSSL + security = .negotiatedSSL } else { port = req.url!.port ?? 80 security = .none @@ -1550,12 +1550,12 @@ private func ==(lhs: InnerWebSocket, rhs: InnerWebSocket) -> Bool { private enum TCPConnSecurity { case none - case negoticatedSSL + case negotiatedSSL var level: String { switch self { case .none: return StreamSocketSecurityLevel.none.rawValue - case .negoticatedSSL: return StreamSocketSecurityLevel.negotiatedSSL.rawValue + case .negotiatedSSL: return StreamSocketSecurityLevel.negotiatedSSL.rawValue } } }