-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ToJson bug #44
Comments
In fact, it looks like a number of supported fields are missing from the toJson and toString functions |
You'll see that Other fields are intentionally omitted because |
Thanks, but I think |
|
Seems a bit arbitrary that an |
Matt to remove unneeded fields such as timestamp, connectionId |
Is the action here to remove the timestamp & connectionId fields from the presencemessage object entirely? |
Yes, plus if |
I don't see how that can be right. We use the timestamp and connectionId in the presence message to decide whether incoming presence messages should supersede presenceMap items with the same clientId + connectionId: https://github.com/ably/ably-js/blob/master/common/lib/client/realtimepresence.js#L256:L261. If we're removing those two from the object entirely (not just from the fromJSON() and toString() calls), then that problem'll be unsolved |
PR that only changes the json/string rep: #117 |
|
@paddybyers and you agree that |
It's correct that if a |
@paddybyers well perhaps, but then the client library somewhere needs to move |
it doesn't do that yet. But that's not in
If unset it will be This |
Ok, makes sense. |
See https://github.com/ably/ably-js/blob/master/common/lib/types/presencemessage.js#L28, shouldn't this be action?
The text was updated successfully, but these errors were encountered: