-
Methods Method Description io.ably.lib.realtime.sync() io.ably.lib.realtime.publish(String,Object,CompletionListener) Publishes a single message to the channel with the given event name and payload. io.ably.lib.realtime.publish(Message,CompletionListener) Publishes a message to the channel.When publish is called with this client library, it won't attempt to implicitly attach to the channel. io.ably.lib.realtime.publish(Array,CompletionListener) Publishes an array of messages to the channel.When publish is called with this client library, it won't attempt to implicitly attach to the channel. io.ably.lib.realtime.sync() io.ably.lib.realtime.publish(String,Object,CompletionListener) Publishes a single message to the channel with the given event name and payload. io.ably.lib.realtime.publish(Message,CompletionListener) Publishes a message to the channel.When publish is called with this client library, it won't attempt to implicitly attach to the channel. io.ably.lib.realtime.publish(Array,CompletionListener) Publishes an array of messages to the channel.When publish is called with this client library, it won't attempt to implicitly attach to the channel. io.ably.lib.realtime.emit(ConnectionState,ConnectionStateListener.ConnectionStateChange) io.ably.lib.realtime.on(ConnectionState,ConnectionStateListener) io.ably.lib.realtime.once(ConnectionState,ConnectionStateListener) io.ably.lib.types.fromCipherKey(Array) Deprecated. io.ably.lib.types.fromCipherKey(String) Deprecated. io.ably.lib.rest.publishAsync(String,Object,CompletionListener) Publish a message on this channel using the REST API.Since the REST API is stateless, this request is made independentlyof any other request on this or any other channel. io.ably.lib.rest.publishAsync(Array,CompletionListener) Asynchronously publish an array of messages on this channel io.ably.lib.rest.publishAsync(String,Object,CompletionListener) Publish a message on this channel using the REST API.Since the REST API is stateless, this request is made independentlyof any other request on this or any other channel. io.ably.lib.rest.publishAsync(Array,CompletionListener) Asynchronously publish an array of messages on this channel 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.