Module: I3::Subscription
Defined Under Namespace
Classes: SubscriptionConnection
Instance Method Summary collapse
Instance Method Details
#subscribe(subscription_list, socket_path = nil, &blk) ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/i3-ipc/subscription.rb', line 29 def subscribe(subscription_list, socket_path=nil, &blk) socket_path ||= I3::IPC.socket_path EM.run do SubscriptionConnection.connect(subscription_list, socket_path, &blk) end end |