diff --git a/Source/WebSocket.swift b/Source/WebSocket.swift index 6c22da2..9e11b0d 100644 --- a/Source/WebSocket.swift +++ b/Source/WebSocket.swift @@ -1668,7 +1668,7 @@ open class WebSocket: NSObject { self.init(request: URLRequest(url: URL(string: url)!), subProtocols: [subProtocol]) } /// Create a WebSocket connection from an NSURLRequest; Also include a list of protocols. - public init(request: URLRequest, subProtocols : [String] = []){ + public required init(request: URLRequest, subProtocols : [String] = []){ let hasURL = request.url != nil opened = hasURL ws = InnerWebSocket(request: request, subProtocols: subProtocols, stub: !hasURL) @@ -1683,7 +1683,7 @@ open class WebSocket: NSObject { } } /// Create a WebSocket object with a deferred connection; the connection is not opened until the .open() method is called. - public convenience override init(){ + public required convenience override init(){ var request = URLRequest(url: URL(string: "http://apple.com")!) request.url = nil self.init(request: request, subProtocols: []) diff --git a/SwiftWebSocket.podspec b/SwiftWebSocket.podspec index 5159b1c..e76a3c7 100644 --- a/SwiftWebSocket.podspec +++ b/SwiftWebSocket.podspec @@ -1,10 +1,10 @@ Pod::Spec.new do |s| s.name = "SwiftWebSocket" - s.version = "2.7.0" + s.version = "2.7.1" s.summary = "A high performance WebSocket client library for Swift." s.homepage = "https://github.com/tidwall/SwiftWebSocket" s.license = { :type => "Attribution License", :file => "LICENSE" } - s.source = { :git => "https://github.com/tidwall/SwiftWebSocket.git", :tag => "v2.7.0" } + s.source = { :git => "https://github.com/tidwall/SwiftWebSocket.git", :tag => "v2.7.1" } s.authors = { 'Josh Baker' => 'joshbaker77@gmail.com' } s.social_media_url = "https://twitter.com/tidwall" s.ios.deployment_target = "8.0"