chat-app/backend/app/channels/room_channel.rb

6 lines
124 B
Ruby
Raw Normal View History

2025-02-15 22:16:39 +09:00
class RoomChannel < ApplicationCable::Channel
def subscribed
stream_from "room_channel_#{params[:room_id]}"
end
end