fix nsp for default

This commit is contained in:
Erik 2015-03-27 12:22:59 -04:00
parent c4731dc298
commit 81d58fbd69

View File

@ -104,7 +104,7 @@ public class SocketIOClient: NSObject, SocketEngineClient {
} }
if var nsp = opts!["nsp"] as? String { if var nsp = opts!["nsp"] as? String {
if nsp.hasPrefix("/") { if nsp != "/" && nsp.hasPrefix("/") {
nsp.removeAtIndex(nsp.startIndex) nsp.removeAtIndex(nsp.startIndex)
} }