Method: Importr::Notifier.notify

Defined in:
lib/importr/notifier.rb

.notify(channel, msg) ⇒ Object



5
6
7
8
9
# File 'lib/importr/notifier.rb', line 5

def self.notify(channel, msg)
  if Importr::Config.web_socket_class.present? and defined?(Importr::Config.web_socket_class.constantize)
    Importr::Config.web_socket_class.constantize.send(Importr::Config.web_socket_method.to_sym, channel, msg)
  end
end