I cannot be certain that if it happens every time, as the logic of sending
msg2 is rarely triggered (it is still important to the application). But so far on 2 occasions I can observe, I see
msg2 is processed by the server before
msg1.
As for other polling transports, I do not know. Currently, this is the list of protocols we use: ['websocket', 'xdr-streaming', 'xhr-streaming', 'xdr-polling', 'xhr-polling', 'iframe-eventsource'], and so far we've got either websocket or streaming protocols.
Is this expected behavior specific for streaming protocols? As for websocket, I would imagine the order should be guaranteed?