I got this channel:
class TestChannel < ApplicationCable::Channel
def subscribed
stream_from 'test'
ActionCable.server.broadcast 'Test', vehicles: Vehice.find_by id: 13
end
end
I don't wanna broadcast to all subscriber when someone subscribe.
I was thinking about changing confirm_subscription
with adding 'message'
.
Can someone tell me if it's even possible?