Class: Chat::NotificationRelayJob
- Inherits:
-
ApplicationJob
- Object
- ApplicationJob
- ApplicationJob
- Chat::NotificationRelayJob
- Defined in:
- app/jobs/chat/notification_relay_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(message) ⇒ Object
5 6 7 8 9 |
# File 'app/jobs/chat/notification_relay_job.rb', line 5 def perform() user_ids().each do |user_id| broadcast("users::#{user_id}::chats", chat_id: .conversation_id) end end |