Class: WSocketIO::PubSubNamespace

Inherits:
Object
  • Object
show all
Defined in:
lib/wsocket_io.rb

Overview

─── PubSub Namespace ──────────────────────────────────────

Instance Method Summary collapse

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