Skip to content

Commit

Permalink
Updated README for sync_enabled option
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Oct 4, 2023
1 parent 9fc748b commit d5220a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions UPDATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit d5220a8

Please sign in to comment.