0
我得到這個通道:Rails的5 ActionCable修改confirm_subscription
class TestChannel < ApplicationCable::Channel
def subscribed
stream_from 'test'
ActionCable.server.broadcast 'Test', vehicles: Vehice.find_by id: 13
end
end
我不想廣播到所有的用戶,當有人認購。 我在考慮改變confirm_subscription
加入'message'
。
有人可以告訴我,如果它甚至可能嗎?