SetCustomProperty call like this
like this:
this.client.myRoom().setCustomProperty('playerNames', playerNames);
this.client.myRoom().setCustomProperty('players', players);
this.client.myRoom().setCustomProperty('ready', true);
will onMyRoomPropertiesChange callback keep the order: playerNames, players, ready??
this.client.myRoom().setCustomProperty('playerNames', playerNames);
this.client.myRoom().setCustomProperty('players', players);
this.client.myRoom().setCustomProperty('ready', true);
will onMyRoomPropertiesChange callback keep the order: playerNames, players, ready??
0
Comments
-
onMyRoomPropertiesChange() will be called 3 times, the properties will be changed on each call according to setCustomProperty() calls order.
It's more efficient to set multiple properties with single call of setCustomProperties() which triggers single onMyRoomPropertiesChange()0