diff --git a/SwiftIO/SocketEngine.swift b/SwiftIO/SocketEngine.swift index 7691bc2..8c32b68 100644 --- a/SwiftIO/SocketEngine.swift +++ b/SwiftIO/SocketEngine.swift @@ -33,7 +33,7 @@ extension String { private typealias Probe = (msg:String, type:PacketType, data:ContiguousArray?) private typealias ProbeWaitQueue = [Probe] -public enum PacketType: String { +public enum PacketType:String { case OPEN = "0" case CLOSE = "1" case PING = "2" @@ -443,6 +443,8 @@ public class SocketEngine: NSObject, WebSocketDelegate { self.upgradeTransport() return } + + return } else if type == PacketType.OPEN.rawValue { var err:NSError?