Skip to content

Instantly share code, notes, and snippets.

@amclain
Created March 5, 2014 07:33
Show Gist options
  • Save amclain/9362765 to your computer and use it in GitHub Desktop.
Save amclain/9362765 to your computer and use it in GitHub Desktop.
# Send a multipart message as an array of strings
def send_array(array)
ary = array.to_a
ary[0...-1].each { |str| send_string str.to_s, ZMQ::SNDMORE }
send_string ary.last.to_s
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment