Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
* development:
  bump ws, fix #598
  remove namespace from socket id
  • Loading branch information
nuclearace committed Dec 19, 2016
2 parents 163a770 + b1debdf commit 650538a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/SSLSecurity.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public protocol SSLTrustValidator {
func isValid(_ trust: SecTrust, domain: String?) -> Bool
}

open class SSLCert {
open class SSLCert : NSObject {
var certData: Data?
var key: SecKey?

Expand Down
2 changes: 1 addition & 1 deletion Source/SocketIOClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public final class SocketIOClient : NSObject, SocketEngineClient, SocketParsable
var waitingPackets = [SocketPacket]()

public var sid: String? {
return nsp + "#" + (engine?.sid ?? "")
return engine?.sid
}

/// Type safe way to create a new SocketIOClient. opts can be omitted
Expand Down
5 changes: 5 additions & 0 deletions Source/WebSocket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ open class WebSocket : NSObject, StreamDelegate {
public init(url: URL, protocols: [String]? = nil) {
self.url = url
self.origin = url.absoluteString
if let hostUrl = URL (string: "/", relativeTo: url) {
var origin = hostUrl.absoluteString
origin.remove(at: origin.index(before: origin.endIndex))
self.origin = origin
}
writeQueue.maxConcurrentOperationCount = 1
optionalProtocols = protocols
}
Expand Down

0 comments on commit 650538a

Please sign in to comment.