metamaps--metamaps/app/channels/topic_channel.rb

8 lines
200 B
Ruby
Raw Normal View History

2016-12-19 14:55:24 +00:00
class TopicChannel < ApplicationCable::Channel
# Called when the consumer has successfully
# become a subscriber of this channel.
def subscribed
stream_from "topic_#{params[:id]}"
end
end