lib/submodules/ably-ruby/lib/ably/realtime/client.rb in ably-rest-0.7.3 vs lib/submodules/ably-ruby/lib/ably/realtime/client.rb in ably-rest-0.7.5

- old
+ new

@@ -99,11 +99,11 @@ end # Retrieve the Ably service time # # @yield [Time] The time as reported by the Ably service - # @return [EventMachine::Deferrable] + # @return [Ably::Util::SafeDeferrable] # def time(&success_callback) async_wrap(success_callback) do rest_client.time end @@ -114,20 +114,25 @@ # @param (see Ably::Rest::Client#stats) # @option options (see Ably::Rest::Client#stats) # # @yield [Ably::Models::PaginatedResource<Ably::Models::Stat>] An Array of Stats # - # @return [EventMachine::Deferrable] + # @return [Ably::Util::SafeDeferrable] # def stats(options = {}, &success_callback) async_wrap(success_callback) do rest_client.stats(options) end end # (see Ably::Realtime::Connection#close) def close(&block) connection.close(&block) + end + + # (see Ably::Realtime::Connection#connect) + def connect(&block) + connection.connect(&block) end # @!attribute [r] endpoint # @return [URI::Generic] Default Ably Realtime endpoint used for all requests def endpoint