Class: Eventoverse::UdpReporter

Inherits:
BaseReporter show all
Defined in:
lib/eventoverse/udp_reporter.rb

Instance Method Summary collapse

Methods inherited from BaseReporter

#publish_exception, publish_message, #publish_message

Instance Method Details

#backend_publish_message(payload) ⇒ Object

API



12
13
14
15
# File 'lib/eventoverse/udp_reporter.rb', line 12

def backend_publish_message(payload)
  body = MultiJson.encode(payload)
  connection.send(body.to_s, 0)
end