class RoomChannel < ApplicationCable::Channel def subscribed stream_from "room_channel_#{params[:room_id]}" end end