nyx/tests/dynamic_fixtures/websocket/actioncable/benign.rb

10 lines
212 B
Ruby
Raw Permalink Normal View History

2026-06-05 10:16:30 -05:00
# Phase 21 — ActionCable benign control.
# class ChatChannel < ApplicationCable::Channel
require 'shellwords'
class ChatChannel
def receive(data)
system("echo " + Shellwords.escape(data.to_s))
end
end