blob: 39198121615707cf340bc8f1a15feca15e251baa (
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
|
require 'active_support'
require 'active_support/rails'
require 'action_cable/version'
module ActionCable
extend ActiveSupport::Autoload
INTERNAL = {
identifiers: {
ping: '_ping'.freeze
},
message_types: {
confirmation: 'confirm_subscription'.freeze,
rejection: 'reject_subscription'.freeze
}
}
# 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)
|