Module: ActionCable

Extended by:
ActiveSupport::Autoload
Defined in:
actioncable/lib/action_cable.rb,
actioncable/lib/action_cable/engine.rb,
actioncable/lib/action_cable/server.rb,
actioncable/lib/action_cable/channel.rb,
actioncable/lib/action_cable/version.rb,
actioncable/lib/action_cable/connection.rb,
actioncable/lib/action_cable/gem_version.rb,
actioncable/lib/action_cable/server/base.rb,
actioncable/lib/action_cable/channel/base.rb,
actioncable/lib/action_cable/server/worker.rb,
actioncable/lib/action_cable/channel/naming.rb,
actioncable/lib/action_cable/channel/streams.rb,
actioncable/lib/action_cable/connection/base.rb,
actioncable/lib/action_cable/channel/callbacks.rb,
actioncable/lib/action_cable/connection/stream.rb,
actioncable/lib/action_cable/remote_connections.rb,
actioncable/lib/action_cable/server/connections.rb,
actioncable/lib/action_cable/server/broadcasting.rb,
actioncable/lib/action_cable/channel/broadcasting.rb,
actioncable/lib/action_cable/server/configuration.rb,
actioncable/lib/action_cable/subscription_adapter.rb,
actioncable/lib/action_cable/connection/web_socket.rb,
actioncable/lib/action_cable/channel/periodic_timers.rb,
actioncable/lib/action_cable/connection/authorization.rb,
actioncable/lib/action_cable/connection/client_socket.rb,
actioncable/lib/action_cable/connection/subscriptions.rb,
actioncable/lib/action_cable/connection/identification.rb,
actioncable/lib/action_cable/connection/message_buffer.rb,
actioncable/lib/action_cable/subscription_adapter/base.rb,
actioncable/lib/action_cable/connection/faye_event_loop.rb,
actioncable/lib/action_cable/subscription_adapter/async.rb,
actioncable/lib/action_cable/subscription_adapter/redis.rb,
actioncable/lib/action_cable/connection/internal_channel.rb,
actioncable/lib/action_cable/helpers/action_cable_helper.rb,
actioncable/lib/action_cable/subscription_adapter/inline.rb,
actioncable/lib/action_cable/connection/stream_event_loop.rb,
actioncable/lib/action_cable/connection/faye_client_socket.rb,
actioncable/lib/action_cable/connection/tagged_logger_proxy.rb,
actioncable/lib/action_cable/subscription_adapter/postgresql.rb,
actioncable/lib/action_cable/subscription_adapter/evented_redis.rb,
actioncable/lib/action_cable/subscription_adapter/subscriber_map.rb,
actioncable/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

Methods included from ActiveSupport::Autoload

autoload, autoload_at, autoload_under, autoloads, eager_autoload, eager_load!, extended

Class Method Details

.gem_versionObject

Returns the version of the currently loaded Action Cable as a Gem::Version.


3
4
5
# File 'actioncable/lib/action_cable/gem_version.rb', line 3

def self.gem_version
  Gem::Version.new VERSION::STRING
end

.versionObject

Возвращает версию загруженного в настоящее время Action Cable в виде Gem::Version


5
6
7
# File 'actioncable/lib/action_cable/version.rb', line 5

def self.version
  gem_version
end