action-cable
Installation
SKILL.md
Action Cable
Comprehensive guide to real-time WebSocket communication in Rails.
Server Setup
Connection
# app/channels/application_cable/connection.rb
module ApplicationCable
class Connection < ActionCable::Connection::Base
identified_by :current_user
def connect
self.current_user = find_verified_user
end
private