Skip to Content Skip to Search
Namespace
Methods
G
S
V

Constants

INTERNAL = { 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" }, default_mount_path: "/cable", protocols: ["actioncable-v1-json", "actioncable-unsupported"].freeze }
 

Class Public methods

gem_version()

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

# File rails/actioncable/lib/action_cable/gem_version.rb, line 5
def self.gem_version
  Gem::Version.new VERSION::STRING
end

version()

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

# File rails/actioncable/lib/action_cable/version.rb, line 7
def self.version
  gem_version
end

Instance Public methods

server()

Singleton instance of the server

# File rails/actioncable/lib/action_cable.rb, line 51
                def server
  @server ||= ActionCable::Server::Base.new
end