module ActionCable
Action Cable – Integrated WebSockets for Rails
Action Cable seamlessly integrates WebSockets with the rest of your Rails application. It allows for real-time features to be written in Ruby in the same style and form as the rest of your Rails application, while still being performant and scalable. It’s a full-stack offering that provides both a client-side JavaScript framework and a server-side Ruby framework. You have access to your full domain model written with Active Record or your ORM of choice.
You can read more about Action Cable in the Action Cable Overview guide.
Support
API documentation is at:
Bug reports for the Ruby on Rails project can be filed here:
Feature requests should be discussed on the rails-core mailing list here:
Constants
{
message_types: {
welcome: "welcome",
disconnect: "disconnect",
ping: "ping",
confirmation: "confirm_subscription",
rejection: "reject_subscription"
},
disconnect_reasons: {
unauthorized: "unauthorized",
invalid_request: "invalid_request",
server_restart: "server_restart",
remote: "remote"
},
default_mount_path: "/cable",
protocols: ["actioncable-v1-json", "actioncable-unsupported"].freeze
}
Public class methods
Returns the currently loaded version of Action Cable as a Gem::Version
.
Source code GitHub
# File actioncable/lib/action_cable/gem_version.rb, line 7
def self.gem_version
Gem::Version.new VERSION::STRING
end
Returns the currently loaded version of Action Cable as a Gem::Version
.
Source code GitHub
# File actioncable/lib/action_cable/version.rb, line 9
def self.version
gem_version
end
Public instance methods
Singleton instance of the server
Source code GitHub
# File actioncable/lib/action_cable.rb, line 77
def server
@server ||= ActionCable::Server::Base.new
end
Namespace
Definition files
actioncable/
lib/ action_cable.rb actioncable/
lib/ action_cable/ channel/ base.rb actioncable/
lib/ action_cable/ channel/ broadcasting.rb actioncable/
lib/ action_cable/ channel/ callbacks.rb actioncable/
lib/ action_cable/ channel/ naming.rb
38 More Less
actioncable/
lib/ action_cable/ channel/ periodic_timers.rb actioncable/
lib/ action_cable/ channel/ streams.rb actioncable/
lib/ action_cable/ channel/ test_case.rb actioncable/
lib/ action_cable/ connection/ authorization.rb actioncable/
lib/ action_cable/ connection/ base.rb actioncable/
lib/ action_cable/ connection/ callbacks.rb actioncable/
lib/ action_cable/ connection/ client_socket.rb actioncable/
lib/ action_cable/ connection/ identification.rb actioncable/
lib/ action_cable/ connection/ internal_channel.rb actioncable/
lib/ action_cable/ connection/ message_buffer.rb actioncable/
lib/ action_cable/ connection/ stream.rb actioncable/
lib/ action_cable/ connection/ stream_event_loop.rb actioncable/
lib/ action_cable/ connection/ subscriptions.rb actioncable/
lib/ action_cable/ connection/ tagged_logger_proxy.rb actioncable/
lib/ action_cable/ connection/ test_case.rb actioncable/
lib/ action_cable/ connection/ web_socket.rb actioncable/
lib/ action_cable/ deprecator.rb actioncable/
lib/ action_cable/ engine.rb actioncable/
lib/ action_cable/ gem_version.rb actioncable/
lib/ action_cable/ helpers/ action_cable_helper.rb actioncable/
lib/ action_cable/ remote_connections.rb actioncable/
lib/ action_cable/ server/ base.rb actioncable/
lib/ action_cable/ server/ broadcasting.rb actioncable/
lib/ action_cable/ server/ configuration.rb actioncable/
lib/ action_cable/ server/ connections.rb actioncable/
lib/ action_cable/ server/ worker.rb actioncable/
lib/ action_cable/ server/ worker/ active_record_connection_management.rb actioncable/
lib/ action_cable/ subscription_adapter/ async.rb actioncable/
lib/ action_cable/ subscription_adapter/ base.rb actioncable/
lib/ action_cable/ subscription_adapter/ channel_prefix.rb actioncable/
lib/ action_cable/ subscription_adapter/ inline.rb actioncable/
lib/ action_cable/ subscription_adapter/ postgresql.rb actioncable/
lib/ action_cable/ subscription_adapter/ redis.rb actioncable/
lib/ action_cable/ subscription_adapter/ subscriber_map.rb actioncable/
lib/ action_cable/ subscription_adapter/ test.rb actioncable/
lib/ action_cable/ test_case.rb actioncable/
lib/ action_cable/ test_helper.rb actioncable/
lib/ action_cable/ version.rb