class EZMQ::Pusher
Push socket that sends messages but does not receive them. It can connect to
multiple Pull sockets, and will load-balance requests to available destinations.
Public Class Methods
new(mode = :connect, **options)
click to toggle source
Creates a new Pusher
socket.
@param [:bind, :connect] mode a mode for the socket. @param [Hash] options optional parameters. @see EZMQ::Socket
EZMQ::Socket
for optional parameters.
@return [Pusher] a new instance of Pusher
.
Calls superclass method
EZMQ::Socket::new
# File lib/ezmq/push.rb, line 17 def initialize(mode = :connect, **options) super mode, ZMQ::PUSH, options end