Module: ActionCable
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/action_cable.rb,
lib/action_cable/engine.rb,
lib/action_cable/server.rb,
lib/action_cable/channel.rb,
lib/action_cable/version.rb,
lib/action_cable/connection.rb,
lib/action_cable/gem_version.rb,
lib/action_cable/server/base.rb,
lib/action_cable/channel/base.rb,
lib/action_cable/server/worker.rb,
lib/action_cable/channel/naming.rb,
lib/action_cable/channel/streams.rb,
lib/action_cable/connection/base.rb,
lib/action_cable/channel/callbacks.rb,
lib/action_cable/connection/stream.rb,
lib/action_cable/remote_connections.rb,
lib/action_cable/server/connections.rb,
lib/action_cable/server/broadcasting.rb,
lib/action_cable/channel/broadcasting.rb,
lib/action_cable/server/configuration.rb,
lib/action_cable/subscription_adapter.rb,
lib/action_cable/connection/web_socket.rb,
lib/action_cable/channel/periodic_timers.rb,
lib/action_cable/connection/authorization.rb,
lib/action_cable/connection/client_socket.rb,
lib/action_cable/connection/subscriptions.rb,
lib/action_cable/connection/identification.rb,
lib/action_cable/connection/message_buffer.rb,
lib/action_cable/subscription_adapter/base.rb,
lib/action_cable/connection/faye_event_loop.rb,
lib/action_cable/subscription_adapter/async.rb,
lib/action_cable/subscription_adapter/redis.rb,
lib/action_cable/connection/internal_channel.rb,
lib/action_cable/helpers/action_cable_helper.rb,
lib/action_cable/subscription_adapter/inline.rb,
lib/action_cable/connection/stream_event_loop.rb,
lib/action_cable/connection/faye_client_socket.rb,
lib/action_cable/connection/tagged_logger_proxy.rb,
lib/action_cable/subscription_adapter/postgresql.rb,
lib/action_cable/subscription_adapter/evented_redis.rb,
lib/action_cable/subscription_adapter/subscriber_map.rb,
lib/action_cable/server/worker/active_record_connection_management.rb
Defined Under Namespace
Modules: Channel, Connection, Helpers, Server, SubscriptionAdapter, VERSION Classes: Engine, RemoteConnections
Constant Summary collapse
- INTERNAL =
{ message_types: { welcome: 'welcome'.freeze, ping: 'ping'.freeze, confirmation: 'confirm_subscription'.freeze, rejection: 'reject_subscription'.freeze }, default_mount_path: '/cable'.freeze, protocols: ["actioncable-v1-json".freeze, "actioncable-unsupported".freeze].freeze }
Class Method Summary collapse
-
.gem_version ⇒ Object
Returns the version of the currently loaded Action Cable as a
Gem::Version
. -
.server ⇒ Object
Singleton instance of the server.
-
.version ⇒ Object
Returns the version of the currently loaded Action Cable as a
Gem::Version
.
Class Method Details
.gem_version ⇒ Object
Returns the version of the currently loaded Action Cable as a Gem::Version
.
3 4 5 |
# File 'lib/action_cable/gem_version.rb', line 3 def self.gem_version Gem::Version.new VERSION::STRING end |
.server ⇒ Object
Singleton instance of the server
43 44 45 |
# File 'lib/action_cable.rb', line 43 module_function def server @server ||= ActionCable::Server::Base.new end |
.version ⇒ Object
Returns the version of the currently loaded Action Cable as a Gem::Version
5 6 7 |
# File 'lib/action_cable/version.rb', line 5 def self.version gem_version end |