unclear documentation of data parameter to PhotonPeer.SendOperation()

Please add an example of the format for the data parameter to the documentation of PhotonPeer.SendOperation().

Current documentation:
data 	object 	<optional>	Parameters of operation as key-value pairs.
Suggested documentation:
data 	array 	<optional>	Parameters of operation as a flattened array of key-value pairs: [key1, value1, key2, value2...]

I had to go dig through the source of photon-chat.js to figure out how to call SendOperation properly. I interpreted "key-value pairs" as { key1: value1... } or [[key1, value1],[key2, value2]...]. I would not interpret the original description as a flattened array.

Comments

Sign In or Register to comment.