mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-15 20:05:13 +02:00
10 lines
212 B
Ruby
10 lines
212 B
Ruby
|
|
# 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
|