lib/ably/realtime/client/incoming_message_dispatcher.rb in ably-0.8.11 vs lib/ably/realtime/client/incoming_message_dispatcher.rb in ably-0.8.12

- old
+ new

@@ -142,10 +142,10 @@ logger.fatal "Cannot process ProtocolMessage as not yet implemented: #{protocol_message}" end end def process_connection_error(protocol_message) - connection.manager.error_received_from_server protocol_message.error + connection.manager.error_received_from_server(protocol_message.error || Ably::Models::ErrorInfo.new(message: 'Error reason unknown')) end def process_connected_message(protocol_message) if client.auth.token_client_id_allowed?(protocol_message.connection_details.client_id) client.auth.configure_client_id protocol_message.connection_details.client_id