module

ActionCable::Internal

Constants

DEFAULT_MOUNT_PATH = "/cable"
DISCONNECT_REASONS = {:unauthorized => "unauthorized", :invalid_request => "invalid_request", :server_restart => "server_restart", :remote => "remote"} of Symbol => String
MESSAGE_TYPES = {:welcome => "welcome", :disconnect => "disconnect", :ping => "ping", :confirmation => "confirm_subscription", :rejection => "reject_subscription"} of Symbol => String
PROTOCOLS = ["actioncable-v1-json", "actioncable-unsupported"] of String

Class methods

default_mount_path
Source
disconnect_reasons
Source
message_types

Ruby exposes these as one heterogeneous hash (ActionCable::INTERNAL); Crystal's type system keeps them as named constants instead.

Source
protocols
Source