lib/submodules/ably-ruby/lib/ably/realtime/client.rb in ably-rest-1.1.0 vs lib/submodules/ably-ruby/lib/ably/realtime/client.rb in ably-rest-1.1.2.rc1
- old
+ new
@@ -108,19 +108,20 @@
{ token: options }
end
end
@rest_client = Ably::Rest::Client.new(options.merge(realtime_client: self))
- @auth = Ably::Realtime::Auth.new(self)
- @channels = Ably::Realtime::Channels.new(self)
- @connection = Ably::Realtime::Connection.new(self, options)
@echo_messages = rest_client.options.fetch(:echo_messages, true) == false ? false : true
@queue_messages = rest_client.options.fetch(:queue_messages, true) == false ? false : true
@custom_realtime_host = rest_client.options[:realtime_host] || rest_client.options[:ws_host]
@auto_connect = rest_client.options.fetch(:auto_connect, true) == false ? false : true
@recover = rest_client.options[:recover]
raise ArgumentError, "Recovery key '#{recover}' is invalid" if recover && !recover.match(Connection::RECOVER_REGEX)
+
+ @auth = Ably::Realtime::Auth.new(self)
+ @channels = Ably::Realtime::Channels.new(self)
+ @connection = Ably::Realtime::Connection.new(self, options)
end
# Return a {Ably::Realtime::Channel Realtime Channel} for the given name
#
# @param (see Ably::Realtime::Channels#get)