diff --git a/SwiftIO/SocketIOClient.swift b/SwiftIO/SocketIOClient.swift index 337aa45..91f4711 100644 --- a/SwiftIO/SocketIOClient.swift +++ b/SwiftIO/SocketIOClient.swift @@ -104,7 +104,7 @@ public class SocketIOClient: NSObject, SocketEngineClient { } if var nsp = opts!["nsp"] as? String { - if nsp.hasPrefix("/") { + if nsp != "/" && nsp.hasPrefix("/") { nsp.removeAtIndex(nsp.startIndex) }