Fix the subscription documentation

This commit is contained in:
Wilson Silva 2023-11-14 07:45:39 +07:00
parent 4d8803d769
commit 6d9758a37a
No known key found for this signature in database
GPG Key ID: 65135F94E23F82C8
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ client.on :connect do
) )
# Subscribe to events matching conditions of a filter # Subscribe to events matching conditions of a filter
subscription = client.subscribe(filter) subscription = client.subscribe(filter: filter)
# Unsubscribe from events matching the filter above # Unsubscribe from events matching the filter above
client.unsubscribe(subscription.id) client.unsubscribe(subscription.id)

View File

@ -138,7 +138,7 @@ client.on :connect do
) )
# Subscribe to events matching conditions of a filter # Subscribe to events matching conditions of a filter
subscription = client.subscribe(filter) subscription = client.subscribe(filter: filter)
# Unsubscribe from events matching the filter above # Unsubscribe from events matching the filter above
client.unsubscribe(subscription.id) client.unsubscribe(subscription.id)