module

ActionCable

Constants

CHANNELS = [] of Nil

Compile-time registry of channel classes, filled via inherited.

CONNECTION_IDENTIFIERS = [] of Nil

Compile-time registry of connection identifiers, filled via Connection.identified_by; read by #identifiers, Server and RemoteConnections (the gem's Connection::Identification class attribute).

INTERNAL_CHANNEL_PREFIX = "action_cable/"

Prefix of the per-connection internal pubsub channel (the gem's Connection::InternalChannel#internal_channel).

PERIODIC_TIMER_DECLS = [] of Nil

Compile-time registry of periodically declarations, filled via the Channel::Base periodically macro; read by the end-of-program codegen (macro finished below). Each entry: {class name, method name, every}.

VERSION = "0.1.0"

Class methods

connection_identifiers

Identifier names registered via Connection.identified_by, as a runtime array (the compile-time macro list is CONNECTION_IDENTIFIERS).

Source
envelope_json(identifier : String, message : String) : String

Cable envelope for stream delivery: {"identifier":…,"message":…}. Built once per broadcast per unique identifier (encode-once, the uWS TopicTree "palette" analog): a payload that is already valid JSON is embedded as-is — same JSON value, no parse→dump round trip.

Source
gid_app

Имя приложения для GlobalID-сериализации записей в именах стримов (гем: GlobalID.app; default — ENV, иначе "app"). Канонический вид: base64url("gid://<app>/<Class>/<id>") без паддинга (оракул stream_for_expected.yml, sf_gid_param).

Source
gid_app=(gid_app : String)

Имя приложения для GlobalID-сериализации записей в именах стримов (гем: GlobalID.app; default — ENV, иначе "app"). Канонический вид: base64url("gid://<app>/<Class>/<id>") без паддинга (оракул stream_for_expected.yml, sf_gid_param).

Source
lookup_channel(name : String)

Channel-class lookup by name (Ruby uses const_get; we generate the table at end-of-program when all channel classes are known).

Source
serialize_broadcasting(object : Broadcastable) : String
Source
server
Source
server=(server : Server) : Server
Source
valid_json?(message : String) : Bool
Source

Nested types