Module: Lanes::API::Cable
- Defined in:
- lib/lanes/api/cable.rb
Defined Under Namespace
Classes: Channel, Connection
Class Method Summary collapse
Class Method Details
.configure ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/lanes/api/cable.rb', line 30 def self.configure require_relative 'updates' @@config = ActionCable::Server::Configuration.new config.logger = Lanes.logger config.cable = Lanes.config.cable config.connection_class = -> { Connection } config.allowed_request_origins = -> (host) { host } ActionCable::Server::Base.config = config @@server = ActionCable.server Updates.relay! end |