Skip to content

@blazetrails/actioncable ​

Integrated WebSockets for Trails, mirroring the actioncable gem

MeasureValue
Rails counterpartactioncable v8.0.5.2
API methods matched100% (497 of 497)
Rails tests matched100% (163 of 163) (2 permanent)
Ruby files ported42
Ruby files unported0
Measured atfe89b44726

Gaps by file ​

No gaps recorded for this package.

Missing methods ​

None recorded for this package.

Unported Ruby files ​

Every compared Ruby file has a TypeScript file.

Deviation receipts ​

JSDoc receipt tags in the package's source, by the receipt each carries.

TagPERMANENTCONVERGEABLEnone
@noRailsEquivalent300
@missingRailsCall100
@missingRailsArgs700
@missingRailsName300
@internal00121

Permanently skipped tests ​

Method visibility is compile-time only (Module#private, basic_obj_respond_to's pub) (2)

Ratified deviations ​

Each rule below is ratified in the repository's CLAUDE.md files. The first paragraph is quoted; the link opens the full section at this build's commit.

Method visibility is compile-time only (Module#private, basic_obj_respond_to's pub) ​

Ruby's basic_obj_respond_to (vendor/ruby/v3.3.11/vm_method.c:2864-2879) takes a pub flag and hands it to method_boundp (:1788-1818), so respond_to?(:m) and respond_to?(:m, true) can answer differently for the same receiver, and Kernel#public_send (vm_eval.c:1350) raises NoMethodError "private method '…' called for …" where send dispatches. Visibility is a property of the method entry, readable at run time.

CLAUDE.md →

Node's event loop stands in for Action Cable's nio4r selector (StreamEventLoop, Stream#write) ​

ActionCable::Connection::StreamEventLoop (vendor/rails/v8.0.5.2/actioncable/lib/action_cable/connection/stream_event_loop.rb) owns an NIO::Selector and one thread running run (:86-133): it drains a todo queue, selects, reads up to 4096 bytes from each readable socket with read_nonblock and hands them to stream.receive, and calls stream.flush_write_buffer for each writable one. spawn (:62-80) starts that thread and wakeup (:82-84) interrupts the select. Stream#write (vendor/rails/v8.0.5.2/actioncable/lib/action_cable/connection/stream.rb:37-70) calls write_nonblock and keeps the unwritten tail in @write_head / @write_buffer for the loop to flush (:72-92).

packages/actioncable/CLAUDE.md →

Source ​

packages/actioncable on GitHub →