PubnubClient: sort multiple received messages from the same request/response cycle by stamp, this is a huge improvement but still not 100% perfect, I can still see occasional out of order messages, I should collect them over a longer time window but this would introduce a lot of ugly code and delay all messages :-( I guess this is the best I can do for now. Pubnub is just a bunch of crap and might be ok for unimportant chat applications for 12 year olds but its certainly NOT a solution for serious realtime data, especially not where money is involved :-(