turniere-backend/app/channels/tournament_team_action_list...

10 lines
270 B
Ruby

# frozen_string_literal: true
class TournamentTeamActionListsChannel < ApplicationCable::Channel
def subscribed
tournament = Tournament.find(params[:tournament_id])
stream_for tournament
transmit TeamActionListBroadcastPayload.build(tournament)
end
end