classEchoChannel<ActionCable::Channel::Basedefsubscribedstream_from"global"enddefunsubscribed'Goodbye from EchoChannel!'enddefding(data)transmit(dong:data['message'])enddefdelay(data)sleep1transmit(dong:data['message'])enddefbulk(data)ActionCable.server.broadcast"global",wide:data['message']endend