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

- old
+ new

@@ -344,10 +344,13 @@ clientId: client_id, data: data } Ably::Models::PresenceMessage.new(model, logger: logger).tap do |presence_message| - presence_message.encode self.channel + presence_message.encode(client.encoders, channel.options) do |encode_error, error_message| + client.logger.error error_message + emit :error, encode_error + end end end def ensure_presence_publishable_on_connection if !connection.can_publish_messages?