Hi
Sorry for confusing.
The timeline of the issue is following:
*Three Players A, B, C, iOS SDK clients.*
1. A sent EVENT 0, then Cloud code broadcasted Message 0 to A,B,C.
B,C got it immediately.
2. B sent EVENT 1, then Cloud code broadcasted Message 1 to A,B,C.
B,C got it immediately.
3. C sent EVENT 2, then Cloud code broadcasted Message 2 to A,B,C.
B,C got it immediately.
A got Message2 first, then Message1. Message 0 lost.
Thanks,
Jo
In this case do B and C get their own messages (as it looks like A didn't receive their own message and this could be a server issue, but if B and C get their own messages i'd say maybe player A isnt on the list of players for their own message).
Hi
No, it rarely happens but did happen. So I don't think that A is not in the list.
B and C got their own messages.
Thanks
Jo
Hi
The gameId = 120246
I use iOS SDK message listener to listen the messages.
Sorry I have no time to make a simple duplicatable case.
I temporally to add a mechanism to detect if message lost and resync.
But still hope that the platform can make sure they are in order.
Thanks.
Jo
Hi
I found that if the SDK disconnects and reconnects several times, ALL messages may not be delivered at all.
I guess maybe your server does not send messages to the right socket since multiple sockets were built.
Please check it.
Thanks
Jo
Hi, were you able do findo a solution for this?
Jo Huang
I use script messages for broadcasting events in my game and they are needed to be in order.
(ex : A sent EVENT 0, and broadcasting EVENT 0 to all players
B sent EVENT 1, and broadcasting EVENT 1 to all players , etc.)
But I encountered messages lost and out of order.
Ex : Some messages (msg0, 1, 2) sent to 3 players, but one of players lost 0 and got 2 first ,then 1, the other two were fine.
Is that normal? Do I need to build a re-sync mechanism by myself?
Thanks
Jo