Fix the subscription documentation
This commit is contained in:
parent
4d8803d769
commit
6d9758a37a
@ -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)
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user