diff --git a/lib/ably/realtime/channel.rb b/lib/ably/realtime/channel.rb index a7a83ed54..6781b1071 100644 --- a/lib/ably/realtime/channel.rb +++ b/lib/ably/realtime/channel.rb @@ -323,6 +323,8 @@ def clear_error_reason def update_options(channel_options) @options = channel_options.clone.freeze end + alias set_options update_options # (RSL7) + alias options= update_options # Used by {Ably::Modules::StateEmitter} to debug state changes # @api private diff --git a/lib/ably/rest/channel.rb b/lib/ably/rest/channel.rb index 91f72832e..2a187fe2e 100644 --- a/lib/ably/rest/channel.rb +++ b/lib/ably/rest/channel.rb @@ -168,6 +168,8 @@ def presence def update_options(channel_options) @options = channel_options.clone.freeze end + alias set_options update_options # (RSL7) + alias options= update_options private def base_path