Class: Crimson::Adapters::Faye

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/crimson/adapters/faye.rb

Instance Method Summary collapse

Constructor Details

#initialize(ws) ⇒ Faye

Returns a new instance of Faye.



6
7
8
9
# File 'lib/crimson/adapters/faye.rb', line 6

def initialize(ws)
  @ws = ws
  super(@ws)
end

Instance Method Details

#write(message) ⇒ Object



11
12
13
# File 'lib/crimson/adapters/faye.rb', line 11

def write(message)
  @ws.send(message)
end