This commit is contained in:
Erik 2015-07-09 10:44:57 -04:00
parent 652c81a80e
commit 24583f19c1

View File

@ -52,9 +52,9 @@ class SocketParser {
}
private static func handleConnect(p:SocketPacket, socket:SocketIOClient) {
if p.nsp == "" && socket.nsp != "/" {
if p.nsp == "/" && socket.nsp != "/" {
socket.joinNamespace()
} else if p.nsp != "" && socket.nsp == "/" {
} else if p.nsp != "/" && socket.nsp == "/" {
socket.didConnect()
} else {
socket.didConnect()