-
Notifications
You must be signed in to change notification settings - Fork 39
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
Address impact of change to interface on extras field on Message #580
Comments
Honestly I think extending |
Why does this need to be a In the spec:
If we go with a typed |
Related ably/docs#1639. |
I have to agree with Matt - the spec item envisaged a json blob, opaque to the client library, so we could add new features without having to make painful client lib changes, or have to encode the knowledge of how all the push payloads are structured in each client lib, etc. I haven't seen anyone give a good reason for us to change that plan. (Of course typed languages might well want to parse extras.delta on incoming messages into a DeltaExtras object before interacting with it, but they can still do that) |
@QuintinWillison are there any other SDKs which have gone down this route in 1.2 and deviated from the spec? |
@mattheworiordan off topic for this issue and repository context. Moved to internal Slack conversation for the moment, until we have an explicit issue or issues to create in other repositories. Thanks. |
For 1.2.0 we changed
Message.extras
fromJsonObject
toMessageExtras
.This was a breaking change which we acknowledged as a TODO but never addressed.
We need to decide the approach for fixing this (either revert or extend the new
MessageExtras
class) in order to comply with TM2i.The text was updated successfully, but these errors were encountered: