Class: Chat::StatusRelayJob

Inherits:
ApplicationJob show all
Defined in:
app/jobs/chat/status_relay_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(user) ⇒ Object



5
6
7
# File 'app/jobs/chat/status_relay_job.rb', line 5

def perform(user)
  broadcast("chat::status", user_id: user.id, status: user.chat_status)
end