0b31e14132
* Feature: Add online status to each user * Add OnlineStatusable, add availability status to thumbnail
10 lines
272 B
Ruby
10 lines
272 B
Ruby
class RoomChannel < ApplicationCable::Channel
|
|
def subscribed
|
|
stream_from params[:pubsub_token]
|
|
::OnlineStatusTracker.add_subscription(params[:pubsub_token])
|
|
end
|
|
|
|
def unsubscribed
|
|
::OnlineStatusTracker.remove_subscription(params[:pubsub_token])
|
|
end
|
|
end
|