This is quite possible. Very small messages tend to be aggregated by the TCP protocol. There is no control over this aspect and it shouldn't affect your application in 99.9% of the cases.However, the other client will sometimes receive a cluster of messages in one big lump.
What happens then? Do these messages arrive?Client A will receive these messages in the correct order and with up to a second in between, or almost instantly if the server logic is very light.
The other client will send its action message and then trace nothing for upwards of 30 seconds.
Can you reproduce this problem locally? Because over the internet the 2nd client might just be "stuck". If this is the case it will never receive anything and will be eventually disconnected.
Clear. But what's the problem with the bunch, exactly?This IS a socket connection and we have verified that the client just previously sent a message and received a response within less than a second. Yet, in this case the next several messages would come in one bunch.
Can you reproduce this in a local environment?As gentleman has pointed out, quite often the client won't receive a message until after it has sent a message of its own.
If so can you provide us a way to reproduce it?
In other words you are saying that:Client A finishes animating and sends the message to the server, Client B however doesn't trace out the update from the server in the first place.
- Client A sends request to Server
- Server generates messages for Client A and B
- Client A gets the response immediately, but client B doesn't
Correct?
Are you sure your Client B isn't too busy (Flash Player CPU usage) working on other things that it doesn't have any more time to handle any network events?
If you are running a tight, heavy animation loop this can happen.