about summary refs log tree commit diff
path: root/app/channels/timeline_channel.rb
blob: 9e5a811882e0b1b9671c1a15b41547744f65925b (plain) (blame)
1
2
3
4
5
6
7
8
9
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