Skip to content

Commit 81d58fb

Browse files
committed
fix nsp for default
1 parent c4731dc commit 81d58fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SwiftIO/SocketIOClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public class SocketIOClient: NSObject, SocketEngineClient {
104104
}
105105

106106
if var nsp = opts!["nsp"] as? String {
107-
if nsp.hasPrefix("/") {
107+
if nsp != "/" && nsp.hasPrefix("/") {
108108
nsp.removeAtIndex(nsp.startIndex)
109109
}
110110

0 commit comments

Comments
 (0)