State properties with nested schema are not being synced to clients #875
Unanswered
chiragpetals
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Hi @chiragpetals 👋 I see you defined your Can you try it like this? const responses = new ResponseSchema();
responses.id = `${idx}`;
responses.text = 'You responded at ' + (idx + 1) + ' position'; // this is just dummy text
playerResult.responses = [responses];There might be an issue regarding |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a state property
playersof typeMapSchema<PlayerSchema>, andPlayerSchemais defined belowI only need to change the result property for each player as the match ends, and i have tries to
setand directly assignment=, but nothing works currently.My Code Looks Something Like This::
Problem
I am setting state view for particular players at the time of joining of the room, but still the clients sees
players.get(user.sessionId).resultas{}Specifications
colyseus: ^0.16.0Beta Was this translation helpful? Give feedback.
All reactions