Method: OSub::Subscription#subscribe
- Defined in:
- lib/osub/subscription.rb
#subscribe(hub_url, token = nil) ⇒ Object
Subscribe to the topic through the given hub.
28 29 30 31 32 33 |
# File 'lib/osub/subscription.rb', line 28 def subscribe(hub_url, token = nil) if token != nil @tokens << token.to_s end change_subscription(:subscribe, hub_url, token) end |