Essentially, can the "changedVars" paramter from the OnUserVariableUpdate call back ever receive batched results from multiple update requests?
For example, I send two user variable updates (in pseudo code):
Code: Select all
SendVariables(A="hello", B="you said hello");
SendVariables(C = "goodbye", B="you said goodbye");
Will the receiving client *always* get two OnUserVariableUpdate? IE:
Code: Select all
changedVars = A="hello", B="you said hello"
Then
changedVars = C = "goodbye", B="you said goodbye"
Or is it possible in certain circumstances you might only receive one callback? IE
Code: Select all
changedVars = A="hello", B="you said goodbye", C="goodbye"
Or still receive two callbacks, but with some 'merged' results?
Code: Select all
changedVars = A="hello", B="you said goodbye"
Then
changedVars = C="goodbye", B="you said goodbye"
The reason I'm asking is I've seen some rare behaviour which seems to be similar to this. I can't figure out if it's a mistake in my design or if that's just how SFS is supposed to operate under certain conditions. Essentially I'm trying to hash each set of user var updates sent, so that the clients can check the validity of the new data before acting on it. However if you ever get "merged" results this technique doesn't work.
If batching/merging does happen, is there any way to disable or otherwise prevent this behaviour?
Thanks in advance