Class: Cramp::Websocket
- Defined in:
- lib/cramp/websocket.rb
Class Method Summary collapse
Methods inherited from Action
Methods included from KeepConnectionAlive
Methods included from PeriodicTimer
Methods inherited from Abstract
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 |