Chatwoot/app/dispatchers/sync_dispatcher.rb
Sojan Jose 96da27f1f6
Feature: User Notification Objects (#752)
Co-authored-by: Pranav Raj S <pranavrajs@gmail.com>
2020-05-01 14:53:43 +05:30

10 lines
325 B
Ruby

class SyncDispatcher < BaseDispatcher
def dispatch(event_name, timestamp, data)
event_object = Events::Base.new(event_name, timestamp, data)
publish(event_object.method_name, event_object)
end
def listeners
[ActionCableListener.instance, AgentBotListener.instance, NotificationListener.instance]
end
end