FayeSwift icon indicating copy to clipboard operation
FayeSwift copied to clipboard

self.fayeConnected set to true after delegated is called

Open mtutunik opened this issue 5 years ago • 0 comments

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.

mtutunik avatar Mar 22 '19 19:03 mtutunik