Class: Raven::Transports::UDP

Inherits:
Transport show all
Defined in:
lib/raven/transports/udp.rb

Instance Attribute Summary

Attributes inherited from Transport

#configuration

Instance Method Summary collapse

Methods inherited from Transport

#initialize

Constructor Details

This class inherits a constructor from Raven::Transports::Transport

Instance Method Details

#send(auth_header, data, options = {}) ⇒ Object



13
14
15
16
17
# File 'lib/raven/transports/udp.rb', line 13

def send(auth_header, data, options = {})
  Raven.logger.warn "DEPRECATION WARNING: Calling #send on a Transport will be \
    removed in Raven-Ruby 0.14! Use #send_event instead!"
  send_event(auth_header, data, options)
end

#send_event(auth_header, data, _options = {}) ⇒ Object



9
10
11
# File 'lib/raven/transports/udp.rb', line 9

def send_event(auth_header, data, _options = {})
  conn.send "#{auth_header}\n\n#{data}", 0
end