From d5220a82afbfadeaa4b2169a33f93426cba27eb0 Mon Sep 17 00:00:00 2001 From: sacOO7 Date: Wed, 4 Oct 2023 15:36:53 +0530 Subject: [PATCH] Updated README for sync_enabled option --- UPDATING.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/UPDATING.md b/UPDATING.md index 01308642..30fae973 100644 --- a/UPDATING.md +++ b/UPDATING.md @@ -87,15 +87,14 @@ The 1.2.0 version introduces a breaking change, which changes the way of interac Because of this breaking change, every call that interacts with the Ably REST API must be refactored to this asynchronous way. Important Update - -- If you want to keep using old synchronous style API, make sure to set `sync_enabled` property of `AblyRest` client. +- If you want to keep using old synchronous style API, make sure to set `sync_enabled` param while passing options to `AblyRest` client. - This is applicable for all new Ably REST async APIs. ```python from ably import AblyRest def main(): - ably = AblyRest('api:key') - ably.sync_enabled = True + ably = AblyRest('api:key', sync_enabled=True) channel = ably.channels.get("channel_name") channel.publish('event', 'message')