anthonymidili/Recipedia

View on GitHub
app/channels/mark_as_read_channel.rb

Summary

Maintainability
A
0 mins
Test Coverage
class MarkAsReadChannel < ApplicationCable::Channel
  def subscribed
    # stream_from "some_channel"
    stream_for current_user
  end

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