Sha256: 6733dab8a97c4368d0cc485a7fc17a3bc76a4c6a164a2aea6567b2fff1a9d9d9
Contents?: true
Size: 585 Bytes
Versions: 4
Compression:
Stored size: 585 Bytes
Contents
require 'socket' require 'raven/transports' require 'raven/error' module Raven module Transports class UDP < Transport def send_event(auth_header, data, _options = {}) conn.send "#{auth_header}\n\n#{data}", 0 end private def conn @conn ||= begin sock = UDPSocket.new sock.connect(self.configuration.host, self.configuration.port) sock end end def verify_configuration super raise Error.new('No port specified') unless self.configuration.port end end end end
Version data entries
4 entries across 4 versions & 1 rubygems