-
Notifications
You must be signed in to change notification settings - Fork 41
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
v0.9 and v1.0 release notes #235
Comments
Other changes in all client-libraries:
Some more probably-ably-js-specific changes:
|
On iOS, the only breaking change that I'm aware of is the Objective-C connection event enum: v0.8:
v0.9:
This can break as well in Swift when the user uses it like |
This is all covered in https://blog.ably.io/v1-0-client-libraries-released-8a375dca7a26 |
@mattheworiordan |
We need to write a blog post / create an article in this repo that outlines considerations for a v0.8 -> v0.9 & v1.0 upgrade. Note v0.9 and v1.0 are the same.
We can touch on new functionality, but the purpose of this post is to ensure developers understand the implications of an upgrade. As a starting point, I think people need to consider:
resume
attribute on aChannelStateChange
object when becomingATTACHED
or when emitting anUPDATED
event (see below) indicates whether continuity has been provided on the channel or not. Ifresume
is false, then this indicates that the channel has lost continuity and can no longer guarantee that messages have not been lost. This may occur for example when a connection becomes disconnected for too long, moves into theSUSPENDED
state, and later becomesATTACHED
but is unable to provide continuity on that channel which wasSUSPENDED
.authorize
behave differently now (authorization always occurs)DISCONNECTED
orSUSPENDED
instead ofFAILED
UPDATED
event when the channel state has changed. For example, if continuity is lost on a channel, then anUPDATED
event will fire with aChannelStateChange
object withresumed
set to false. Ifresumed
is true, then this indicates continuity has not been lost on a channel.UPDATED
event which indicates the connection state has been updated. This may occur for example following a token becoming expired, a new token being obtained by the library automatically and the connection being upgraded with the new token.subscribe
on the channel will still register the listener even if the attach operation fails.Other new features / improvement
request
method to access undocumented / unreleased Ably APIs such as channel enumerationextras
field which is reserved for future functionality such as push notification payloadsfromJson
constructors that accept aJsonObject
or a string to ease creation of these objects as part of the authentication process. For example, if your server provides aTokenDetails
object as JSON in response to your clients requesting a new token, you can useTokenDetails.fromJson
to create aTokenDetails
object from that JSON Object. This helps to reduce bugs that may occur due to idiomatic differences in languages such as durations typically being in seconds for iOS and milliseconds for Javascript.Javascript specific
The text was updated successfully, but these errors were encountered: