about summary refs log tree commit diff
path: root/app/channels/timeline_channel.rb
blob: c128fae584f6346c5566f497b81e52e18ab9c17b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# Be sure to restart your server when you modify this file. Action Cable runs in a loop that does not support auto reloading.
class TimelineChannel < ApplicationCable::Channel
  def subscribed
    stream_from "timeline:#{current_user.id}"
  end

  def unsubscribed
    # Any cleanup needed when channel is unsubscribed
  end
end