Class: CelluloidPubsub::Client
- Inherits:
-
Object
- Object
- CelluloidPubsub::Client
- Defined in:
- lib/celluloid_pubsub/client_pubsub.rb
Overview
class used to make a new connection in order to subscribe or publish to a channel
Defined Under Namespace
Classes: PubSubWorker
Class Method Summary (collapse)
-
+ (CelluloidPubsub::Client::PubSubWorker) connect(options = {}, &connect_blk)
method used to make a new connection to the webserver after the connection is opened it will execute the block that is passed as argument.
Class Method Details
+ (CelluloidPubsub::Client::PubSubWorker) connect(options = {}, &connect_blk)
method used to make a new connection to the webserver after the connection is opened it will execute the block that is passed as argument
192 193 194 |
# File 'lib/celluloid_pubsub/client_pubsub.rb', line 192 def self.connect( = {}, &connect_blk) CelluloidPubsub::Client::PubSubWorker.new(, &connect_blk) end |