aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable.rb
blob: 89ffa1fda7412f7a6eeb12b6c56c5d1e8961d1d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'active_support'
require 'active_support/rails'
require 'action_cable/version'

module ActionCable
  extend ActiveSupport::Autoload

  # Singleton instance of the server
  module_function def server
    @server ||= ActionCable::Server::Base.new
  end

  eager_autoload do
    autoload :Server
    autoload :Connection
    autoload :Channel
    autoload :RemoteConnections
  end
end

require 'action_cable/engine' if defined?(Rails)