I use sendCommandOnce to send a message from my room owner to all participants, that attached to this command via addCommandListener. I even attach to this command with my room owner. It is working.
If someone joins the room, only the last custom command will be invoked immediatley.
The strange behaviour
If the initial room owner closes the connection and rejoins, that last command will not be invoked.
Question:
Is there any good reason for this kind of behaviour?
How i can force the room owner to get the last commmand?
This command is carried in the presence of the participant, if the participant leaves there is no command.
And it is said Once as it will be added just on the next presence update, will not be added on subsequent updates. So if for example that participant who sent it mutes or unmutes which is reflected in presence that command is lost and participants joining will not receive it.
What do you want to achieve?
So summarize, and to check if i understand the right way:
The one who invoked the command carries it. If he disconnects and joins again, the command will be “lost” for everyone (with SendCommandOnce).
I am using a custom GUI and i want to synchronize the layout (hide/show elements etc.) between all clients. I thought this would be a clever way to bypass storing the information on the server :-P, but i guess i have to .
Thank you for your help mate, u guys are doing a really great job!