Class: Pushit::Channel
- Inherits:
-
Object
- Object
- Pushit::Channel
- Defined in:
- lib/pushit/channel.rb
Instance Method Summary collapse
-
#initialize(channel_name, options = {}) ⇒ Channel
constructor
A new instance of Channel.
- #post(event, data = {}) ⇒ Object
Constructor Details
#initialize(channel_name, options = {}) ⇒ Channel
Returns a new instance of Channel.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/pushit/channel.rb', line 6 def initialize(channel_name, = {}) = { scheme: 'https', host: 'ws.slaask.com' }.merge() @channel_name = channel_name @scheme, @host, @port = .values_at( :scheme, :host, :port ) end |