10 lines
219 B
Ruby
10 lines
219 B
Ruby
class SoundEffectChannel < ApplicationCable::Channel
|
|
def subscribed
|
|
stream_from "sound_effect_channel"
|
|
end
|
|
|
|
def unsubscribed
|
|
stop_all_streams
|
|
# Any cleanup needed when channel is unsubscribed
|
|
end
|
|
end |