lib/submodules/ably-ruby/lib/ably/models/message_encoders/base.rb in ably-rest-0.9.2 vs lib/submodules/ably-ruby/lib/ably/models/message_encoders/base.rb in ably-rest-0.9.3

- old
+ new

@@ -94,10 +94,11 @@ message[:data].nil? || message[:data] == '' end end # @api private - def self.register_default_encoders(client, binary_protocol: false) + def self.register_default_encoders(client, options = {}) + binary_protocol = !!options[:binary_protocol] client.register_encoder Ably::Models::MessageEncoders::Utf8 client.register_encoder Ably::Models::MessageEncoders::Json client.register_encoder Ably::Models::MessageEncoders::Cipher client.register_encoder Ably::Models::MessageEncoders::Base64, binary_protocol: binary_protocol end