Class: Hotwire::Livereload::CableServer

Inherits:
ActionCable::Server::Base
  • Object
show all
Defined in:
lib/hotwire/livereload/cable_server.rb

Instance Method Summary collapse

Constructor Details

#initializeCableServer

Returns a new instance of CableServer.



4
5
6
7
8
# File 'lib/hotwire/livereload/cable_server.rb', line 4

def initialize
  config = ::ActionCable::Server::Base.config.dup
  config.connection_class = -> { ::ActionCable::Connection::Base }
  super(config: config)
end