I understand that I'm supposed to call setState to initialize my state and that state gets synced. I understand that I should call @nosync for properties inside my state that I do not want synced.
What happens if I have properties in my room outside the state without @nosync? For example, if I do something like the following, will the secrets
property get synced?
export class BattleRoom extends Room {
onInit (options: any) {
this.setState({
players: {}
});
this.secrets = {x: 1, y:2}
}
// other code omitted
}