6 7 8 9 10
# File 'lib/publisher.rb', line 6 def self.publish(source, data) Api::Client.post("/sources/#{source}", body: { data: data.to_json }, timeout: 10000) rescue SocketError => ex Dboard.logger.error("SocketError: #{ex.message}") end