Class: WSocketIO::PubSubNamespace
- Inherits:
-
Object
- Object
- WSocketIO::PubSubNamespace
- Defined in:
- lib/wsocket_io.rb
Overview
─── PubSub Namespace ──────────────────────────────────────
Instance Method Summary collapse
- #channel(name) ⇒ Object
-
#initialize(client) ⇒ PubSubNamespace
constructor
A new instance of PubSubNamespace.
Constructor Details
#initialize(client) ⇒ PubSubNamespace
Returns a new instance of PubSubNamespace.
172 173 174 |
# File 'lib/wsocket_io.rb', line 172 def initialize(client) @client = client end |
Instance Method Details
#channel(name) ⇒ Object
176 177 178 |
# File 'lib/wsocket_io.rb', line 176 def channel(name) @client.channel(name) end |