Class: Cramp::Websocket

Inherits:
Action show all
Defined in:
lib/cramp/websocket.rb

Class Method Summary collapse

Methods inherited from Action

#initialize

Methods included from KeepConnectionAlive

#keep_connection_alive

Methods included from PeriodicTimer

#initialize

Methods inherited from Abstract

call, #initialize, #process

Methods included from Callbacks

#before_start, #callback_wrapper, #on_finish, #on_start

Constructor Details

This class inherits a constructor from Cramp::Action

Class Method Details

.backend=(backend) ⇒ Object



6
7
8
9
# File 'lib/cramp/websocket.rb', line 6

def backend=(backend)
  raise "Websocket backend #{backend} is unknown" unless [:thin, :rainbows].include?(backend.to_sym)
  Faye::WebSocket.load_adapter(backend.to_s)
end