lib/submodules/ably-ruby/lib/ably/realtime/presence/members_map.rb in ably-rest-0.9.1 vs lib/submodules/ably-ruby/lib/ably/realtime/presence/members_map.rb in ably-rest-0.9.2

- old
+ new

@@ -163,10 +163,13 @@ client.connection end def setup_event_handlers presence.__incoming_msgbus__.subscribe(:presence, :sync) do |presence_message| - presence_message.decode channel + presence_message.decode(client.encoders, channel.options) do |encode_error, error_message| + client.logger.error error_message + channel.emit :error, encode_error + end update_members_and_emit_events presence_message end resume_sync_proc = method(:resume_sync).to_proc connection.on_resume(&resume_sync_proc)