lib/submodules/ably-ruby/lib/ably/realtime/connection.rb in ably-rest-1.1.4.rc vs lib/submodules/ably-ruby/lib/ably/realtime/connection.rb in ably-rest-1.1.4

- old
+ new

@@ -429,23 +429,24 @@ EventMachine::DefaultDeferrable.new.tap do |websocket_deferrable| # Getting auth params can be blocking so uses a Deferrable client.auth.auth_params.tap do |auth_deferrable| auth_deferrable.callback do |auth_params| url_params = auth_params.merge( - format: client.protocol, - echo: client.echo_messages, - v: Ably::PROTOCOL_VERSION, - lib: client.rest_client.lib_version_id, + 'format' => client.protocol, + 'echo' => client.echo_messages, + 'v' => Ably::PROTOCOL_VERSION, + 'lib' => client.rest_client.lib_version_id, ) # Use native websocket heartbeats if possible, but allow Ably protocol heartbeats url_params['heartbeats'] = if defaults.fetch(:websocket_heartbeats_disabled) 'true' else 'false' end url_params['clientId'] = client.auth.client_id if client.auth.has_client_id? + url_params.merge!(client.transport_params) if connection_resumable? url_params.merge! resume: key, connection_serial: serial logger.debug { "Resuming connection key #{key} with serial #{serial}" } elsif connection_recoverable?