Using ActionCable directly fixed the error:
# appendix_hotwire/01/app/models/ticket.rb
after_update_commit -> do
ActionCable.server.broadcast(
"concert_#{concert.id}",
{ seat: id, status: status }.to_json)
end
Using ActionCable directly fixed the error:
# appendix_hotwire/01/app/models/ticket.rb
after_update_commit -> do
ActionCable.server.broadcast(
"concert_#{concert.id}",
{ seat: id, status: status }.to_json)
end