FayeSwift
FayeSwift copied to clipboard
self.fayeConnected set to true after delegated is called
In func parseFayeMessage(_ messageJSON:JSON) when .Handshake is handled self.fayeConnected assigned to true after self.delegate?.connectedToServer(self) is called.
As result delegate cannot publish since faye.publish wouldn't do anything until self.fayeConnected is true.
I think these two lines should be swapped.