-
Methods Method Description io.ably.lib.types.fromCipherKey(Array) Deprecated. io.ably.lib.types.fromCipherKey(String) Deprecated. io.ably.lib.rest.fromJSON(JsonObject) A static factory method to create a TokenDetails object from a deserializedTokenDetails-like object or a JSON stringified TokenDetails object.This method is provided to minimize bugs as a result of differing types by platform for fields such as timestamp or ttl.For example, in Ruby ttl in the TokenDetails object is exposed in seconds as that is idiomatic for the language,yet when serialized to JSON using to_json it is automatically converted to the Ably standard which is milliseconds.By using the fromJson() method when constructing a TokenDetails object,Ably ensures that all fields are consistently serialized and deserialized across platforms. io.ably.lib.rest.fromJSON(JsonObject) A static factory method to create a TokenRequest object from a deserialized TokenRequest-like objector a JSON stringified TokenRequest object.This method is provided to minimize bugs as a result of differing types by platform for fields such as timestamp or ttl.For example, in Ruby ttl in the TokenRequest object is exposed in seconds as that is idiomatic for the language,yet when serialized to JSON using to_json it is automatically converted to the Ably standard which is milliseconds.By using the fromJson() method when constructing a TokenRequest object,Ably ensures that all fields are consistently serialized and deserialized across platforms. io.ably.lib.rest.authorise(Auth.TokenParams,Auth.AuthOptions) Alias of authorize() (0. io.ably.lib.rest.renew() Renew auth credentials.Will obtain a new token, even if we already have an apparently valid one.Authorization will use the parameters supplied on construction. io.ably.lib.realtime.sync() io.ably.lib.realtime.sync() io.ably.lib.realtime.emit(ConnectionState,ConnectionStateListener.ConnectionStateChange) io.ably.lib.realtime.on(ConnectionState,ConnectionStateListener) io.ably.lib.realtime.once(ConnectionState,ConnectionStateListener)