blob: 9a54080d4d39ed239d5e4c2c2796e2483f973715 (
plain) (
tree)
|
|
class EchoChannel < ActionCable::Channel::Base
def subscribed
stream_from "global"
end
def ding(data)
transmit(dong: data['message'])
end
def bulk(data)
ActionCable.server.broadcast "global", wide: data['message']
end
end
|