Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Fix “negotiated” typo. #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Source/WebSocket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
}
}
Expand Down