Method: Lookbook::Engine.websocket
- Defined in:
- lib/lookbook/engine.rb
.websocket ⇒ Object
85 86 87 88 89 90 91 92 93 94 |
# File 'lib/lookbook/engine.rb', line 85 def websocket if Rails.version.to_f >= 6.0 @websocket ||= ActionCable::Server::Base.new(config: Lookbook::Engine.cable) else @websocket = ActionCable::Server::Base.new @websocket.config = Lookbook::Engine.cable @websocket end end |