aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable.rb
blob: 5f1f3bec351ccf1eaf8182a8111ce71bd6c0050e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require 'eventmachine'
EM.epoll

require 'set'

require 'active_support'
require 'active_support/json'
require 'active_support/concern'
require 'active_support/core_ext/hash/indifferent_access'
require 'active_support/core_ext/module/delegation'
require 'active_support/callbacks'

require 'faye/websocket'
require 'celluloid'
require 'em-hiredis'

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

module ActionCable
  VERSION = '0.0.3'

  autoload :Server, 'action_cable/server'
  autoload :Connection, 'action_cable/connection'
  autoload :Channel, 'action_cable/channel'

  autoload :RemoteConnections, 'action_cable/remote_connections'
  autoload :Broadcaster, 'action_cable/broadcaster'

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