Method: Ably::Modules::Encodeable#encode

Defined in:
lib/ably/modules/encodeable.rb

#encode(encoders, channel_options, &error_block) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Encode a message using the channel options and register encoders for the client

Parameters:

  • encoders (Array<Ably::Models::MessageEncoders::Base>)

    List of encoders to apply to the message

  • channel_options (Hash)

    Channel options, currently reserved for Encryption options



56
57
58
# File 'lib/ably/modules/encodeable.rb', line 56

def encode(encoders, channel_options, &error_block)
  apply_encoders :encode, encoders, channel_options, &error_block
end