about summary refs log tree commit diff
path: root/app/channels/timeline_channel.rb
blob: 4b34f8ed54ed6f181b728ec4143a122b658d6646 (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.account_id}"
  end

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