Simple Ruby UDP client for the Plog Kafka forwarder.
bundle install
bundle exec rspec
Instantiate a client and start sending messages.
require 'plog'
client = Plog.new
client.send("My hovercraft is full of eels.")
You can configure the client at initialization by passing these options:
:host
- The host of the Plog process (default: 'localhost'):port
- The port on which Plog is listening (default: 54321):chunk_size
- The maximum payload size for multipart datagrams (default: 64,000):logger
- An optional logger instance