Open JuanBohorquez3 opened 3 years ago
Are you mixing json and encoded registrations?
I think it's all json. I'm using the origin.client.registerStream() function and then in the server connection the send(), they both seem to use json. Not sure what an encoded registration is. I tried using the keyOrder parameter but I couldn't get it to maintain the mapping.
I think this is a server side fix. I think you can just lexicographic sort the key order (for JSON only) in the registrations so it doesn't matter what order it deserialized with (since JSON doesn't preserve order).
When registering or posting to a stream using the Origin.Server interface, the order of the keys in the register and post dicts matters. In practice this means that is a stream is re-started with a dict in a different order than the original, The data corresponding to one field may be posted as if it corresponds to another.
Messing around with the key_order parameter did not help