Code Explainers

Code explainers tagged #presence

ruby
class ChatChannel < ApplicationCable::Channel
  periodically :sweep_stale_typists, every: 3.seconds
 
  def subscribed

How a typing indicator works in Rails ActionCable

websockets presence cache-expiry
Intermediate 9 steps